Frederick Posted July 8, 2020 Posted July 8, 2020 I have an A4 report that is generated from FastReport and the output goes to the TUniPDFFrame. When the "Save To PDF" option is selected, TUniPDFFrame shows 1 page, which is correct. However, when I change the print option to my printer, TUniPDFFrame changes the number of pages to 2. Why does this happen? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1534) 2pagestoprinter.mp4 Quote
Jean-Marc Kiener Posted July 8, 2020 Posted July 8, 2020 Maybe because your printer has different standard format then A4, so the page is rendered to this format. Some printer has US Letter Format by default which is slightly smaller then A4. Quote
Frederick Posted July 8, 2020 Author Posted July 8, 2020 5 hours ago, Jean-Marc Kiener said: Maybe because your printer has different standard format then A4, so the page is rendered to this format. Some printer has US Letter Format by default which is slightly smaller then A4. I switched the printer to the Microsoft XPS document printer in A4 mode, an Epson LQ2180 dot matrix printer in A4 mode and an AnyDesk printer in A4 mode and all reported that 2 sheets of paper are needed. It doesn't look right. Quote
Sherzod Posted July 8, 2020 Posted July 8, 2020 8 hours ago, Frederick said: When the "Save To PDF" option is selected, TUniPDFFrame shows 1 page, which is correct. However, when I change the print option to my printer, TUniPDFFrame changes the number of pages to 2. Why does this happen? Can you provide your test pdf file!? Quote
Frederick Posted July 9, 2020 Author Posted July 9, 2020 I am attaching two PDF files. The first, A4REP_PORTRAIT.PDF, shows 1 sheet of paper required when the output "Save To PDF" is selected and 2 sheets of paper are required when any physical printer is chosen. The second, A4REP_LANDSCAPE.PDF, does the reverse. 2 sheets of paper are required when the output "Save To PDF" is selected and 1 sheet of paper is needed when any physical printer is chosen. a4rep_portrait.pdf a4rep_landscape.pdf Quote
zhyhero Posted September 15, 2020 Posted September 15, 2020 This knock down me too, After some tests ,I use urlframe to show and print my pdf file. Quote
Frederick Posted September 15, 2020 Author Posted September 15, 2020 26 minutes ago, zhyhero said: This knock down me too, After some tests ,I use urlframe to show and print my pdf file. You mean you use TUniURLFrame instead of TUniPDFFrame to read and print the PDF file generated? I still would prefer that TUniPDFFrame works as it should. After all, it is meant for PDF files. Quote
zhyhero Posted September 15, 2020 Posted September 15, 2020 1 minute ago, Frederick said: You mean you use TUniURLFrame instead of TUniPDFFrame to read and print the PDF file generated? I still would prefer that TUniPDFFrame works as it should. After all, it is meant for PDF files. Yes ,use urlframe ,and it show and print pdf file depend on webbrowser's pdf viewer. Quote
zhyhero Posted September 15, 2020 Posted September 15, 2020 I think this is "pdf.js"'s problem. Quote
Frederick Posted September 15, 2020 Author Posted September 15, 2020 In that case, it should be an easy fix for technical support since they are the JS experts. I remembered a bank site had the same problem but they eventually fixed it. Quote
Frederick Posted September 29, 2020 Author Posted September 29, 2020 I noticed that even with version 1.90.0.1536, the problem with different total pages for PDF and printer output still remains. Using TUniURLFrame to read the PDF file correctly shows 1 page for both PDF export and printer output. Is the problem with TUniPDFFrame fixable or do I need to continue to use TUniURLFrame? Quote
huayan889 Posted September 30, 2020 Posted September 30, 2020 I also found out the problem of tunipdf frame yesterday. My A4 horizontal PDF Print became 3 pages. Quote
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.