1. Jonas Blomgren
  2. PowerBuilder
  3. Tuesday, 1 August 2017 14:10 PM UTC

Testing the new NativePDF! , seems like dynamic loaded fonts is not included in the generated PDF file,

if i install the font it works fine.

Is this a limit of the export pdf function or is there a workaround ?

Using the "AddFontResourceA" winapi to load fonts.

 

Jonas Blomgren Accepted Answer Pending Moderation
  1. Thursday, 3 August 2017 07:12 AM UTC
  2. PowerBuilder
  3. # 1

Reported this as a bug, can't get this working

Comment
There are no comments made yet.
Jonas Blomgren Accepted Answer Pending Moderation
  1. Wednesday, 2 August 2017 07:37 AM UTC
  2. PowerBuilder
  3. # 2

Thanks for your input

Changed the WinApi to the unicode version , same result

Added NativePDF_IncludeCustomFont=1 to [DataWindow] section and also the existing [Data Window] section in the pb.ini

still not working

Same in deployed test app with a local pb.ini in exe folder, added both [DataWindow] and [Data Window] section in the local pb.ini

no go

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 1 August 2017 19:56 PM UTC
  2. PowerBuilder
  3. # 3

There is option to have the fonts included in the generated PDF.  By default, they are not included to minimize the size of the PDF and improve the PDF generation speed.  Please refer to page 559 of the PB 2017 Application Techniques doc.  Basically, in the PB.INI you need to set NativePDF_IncludeCustomFont=1.

Comment
  1. Jonas Blomgren
  2. Wednesday, 2 August 2017 07:36 AM UTC
delete this

  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 1 August 2017 15:52 PM UTC
  2. PowerBuilder
  3. # 4

I'm sure this isn't the cause but you should use the W version of that function. You won't need the ;Ansi in the alias clause.

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.