picyka Posted August 16, 2022 Share Posted August 16, 2022 Good morning, I have a pdf that when using the TUniPDFFrame component is blank, I believe it is related to the source of the pdf, is there any way to get around this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 16, 2022 Share Posted August 16, 2022 Hello, Sorry, can you please clarify your question? Quote Link to comment Share on other sites More sharing options...
picyka Posted August 16, 2022 Author Share Posted August 16, 2022 3 minutos atrás, Sherzod disse: Olá Desculpe, pode esclarecer sua pergunta? Quote Link to comment Share on other sites More sharing options...
picyka Posted August 16, 2022 Author Share Posted August 16, 2022 I only went up a part, because of the information. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 16, 2022 Share Posted August 16, 2022 Is the file in an accessible folder? Quote Link to comment Share on other sites More sharing options...
picyka Posted August 16, 2022 Author Share Posted August 16, 2022 8 minutes ago, Sherzod said: Is the file in an accessible folder? yes Quote Link to comment Share on other sites More sharing options...
picyka Posted August 16, 2022 Author Share Posted August 16, 2022 Can I send the pdf privately? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 16, 2022 Share Posted August 16, 2022 1 minute ago, picyka said: Can I send the pdf privately? Can you test with a standard demo first? Quote Link to comment Share on other sites More sharing options...
picyka Posted August 16, 2022 Author Share Posted August 16, 2022 6 minutes ago, Sherzod said: Você pode testar com uma demonstração padrão primeiro? C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer - (it works) C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer - UniPDFFrame (does not work) Quote Link to comment Share on other sites More sharing options...
picyka Posted August 18, 2022 Author Share Posted August 18, 2022 Any tips? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 18, 2022 Share Posted August 18, 2022 Hello, On 8/16/2022 at 5:03 PM, picyka said: Can I send the pdf privately? Make a simple testcase and send via PM if possible. Quote Link to comment Share on other sites More sharing options...
picyka Posted August 18, 2022 Author Share Posted August 18, 2022 5 minutes ago, Sherzod said: Hello, Make a simple testcase and send via PM if possible. Test with example C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer - UniPDFFrame (does not work) PDF sent in private Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 18, 2022 Share Posted August 18, 2022 17 minutes ago, picyka said: Test with example C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer - UniPDFFrame (does not work) PDF sent in private In the console I see the following error: Warning: getOperatorList - ignoring errors during task: RenderPageRequest: page 0 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 18, 2022 Share Posted August 18, 2022 Workaround... procedure TMainForm.UniListBox1Change(Sender: TObject); begin if UniListBox1.ItemIndex > -1 then begin //UniPDFFrame1.PdfURL := FUrl + UniListBox1.Items[UniListBox1.ItemIndex]; UniPDFFrame1.JSInterface.JSCall('setUrl', [FUrl + UniListBox1.Items[UniListBox1.ItemIndex]]); end; end; 1 Quote Link to comment Share on other sites More sharing options...
picyka Posted August 18, 2022 Author Share Posted August 18, 2022 40 minutos atrás, Sherzod disse: Solução alternativa... procedure TMainForm.UniListBox1Change(Sender: TObject); begin if UniListBox1.ItemIndex > -1 then begin //UniPDFFrame1.PdfURL := FUrl + UniListBox1.Items[UniListBox1.ItemIndex]; UniPDFFrame1.JSInterface.JSCall('setUrl', [FUrl + UniListBox1.Items[UniListBox1.ItemIndex]]); end; end; Worked perfectly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.