1. Arnold Wesner
  2. PowerBuilder
  3. 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

 

Attachments (2)
mike S Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 14:00 PM UTC
  2. PowerBuilder
  3. # 1

"We also tried adding following to the pb.ini : NativePDF_IncludeCustomFont=1"

 that setting in the ini is ignored in 2019, and now is a setting in the application object additional properties

 

Using NativePDF as Default

 

...

The two INI settings NativePDF_IncludeCustomFont and NativePDF_Valid will no longer take effect.

Besides that, you are able to set a few properties for the generated PDF file, such as the application name, author, subject, and keywords.

Comment
  1. mike S
  2. Thursday, 22 April 2021 14:04 PM UTC
It was moved in 2019R2, you can read the what's new in 2019R2 in the help - see using native pdf as default section in the what's new.



In addition, 2019R3 has bug fixes/improvements related to PDF printing, the update to 2019R3 has additional bug fixes/improvements related to pdf
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 13:33 PM UTC
  2. PowerBuilder
  3. # 2

Hi,  Sounds like a bug to me. Please open a support ticket with reproducible test case.  Thanks.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.