- Arnold Wesner
- PowerBuilder
- Thursday, 22 April 2021 11:54 AM UTC
Hello everyone,
we used to print pdfs via ghostscript. After Upgrading from pb 2017 we wanted to implement the native pdf and at first glance that worked out pretty easy and simple. But after comparing the printed PDFs from ghostscript and from native there are some issues.
Fonts get changed and/or text size gets bigger. After reading the help section and some forum posts we tried changing around some settings. Depending on the settings the font will also change to something completely different - from Arial to Calibri.
The fonts of the reports equal the fonts and sizes of the gs-pdf but the native-pdf allways has some text changing fontsize from 0,5 to 1 biggen then the report suggests.
Settings we tried to change around are:
"DataWindow.Export.PDF.NativePDF.UsePrintSpec = Yes" + gnv_app.of_cr() + &
"Datawindow.Export.PDF.Method = NativePDF!" + gnv_app.of_cr() + &
"DataWindow.Export.PDF.NativePDF.PDFStandard = 1" + gnv_app.of_cr() + &
"DataWindow.Export.PDF.NativePDF.CustomOrientation = 0" + gnv_app.of_cr() + &
"DataWindow.Export.PDF.NativePDF.ImageFormat = 1" + gnv_app.of_cr() + &
"DataWindow.Print.Paper.Size = 9" + gnv_app.of_cr()
For the ghostscript part we change:
"DataWindow.Export.PDF.Distill.CustomPostScript='1'" + gnv_app.of_cr() + &
"Datawindow.Export.PDF.Method = '0'" + gnv_app.of_cr() + &
"Datawindow.Printer='" + is_pdf_ghostscript_printer + "'"
We also tried adding following to the pb.ini :
NativePDF_IncludeCustomFont=1
I attached two example-files.
Is there a setting we are missing/unaware of? Is this an issue of the native-pdf? Do we have to change things up somewhere else?
using Appeon Powerbuilder Cloud Pro Edition Version 2019 R2 Build 2353
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.