1. Patrick Therrien
  2. PowerBuilder
  3. Monday, 20 January 2020 15:56 PM UTC

 

 

Is it possible to include the fonts when making PDF Native?

I have problems with PDF viewers on mobiles that do not display the Consolas font correctly.

Before using PDF Native, we used PDFCreator to make our PDF and it included the fonts partially in our documents 
and we have no problem reading on mobiles viewers. Thank you!

 

Michael Kramer Accepted Answer Pending Moderation
  1. Monday, 20 January 2020 21:50 PM UTC
  2. PowerBuilder
  3. # 1

Hi Patrick,

I'm no legal scholar so I suggest you check the redistribution/embedding license for Consolas before you embed it in a PDF file and potentially dip a toe in hot legal waters.

When I read the brief license description available in Windows 10's Font Settings it seems redistribute/embed restrictions depend on how your PDF file is configured.

HTH /Michael

Comment
  1. Patrick Therrien
  2. Tuesday, 21 January 2020 13:21 PM UTC
Ty Michael for this information.



Patrick



  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 20 January 2020 17:28 PM UTC
  2. PowerBuilder
  3. # 2

Hi Patrick;

   FYI:  In addition to what Michael said about the INI file, the new PB2019 R2 release will support this feature this new way ....

Packaging custom fonts in the generated PDF files -- If your DataWindow objects uses many custom fonts, and these custom fonts are not supported well by the operating system and Adobe Reader, you can consider packaging these custom fonts with your application. Note that using custom fonts will increase the generated PDF file size. By default, these custom fonts are not packaged with the application


Regards ... Chris

 

Comment
  1. Patrick Therrien
  2. Monday, 20 January 2020 18:14 PM UTC
Ty Chris



I will try this parameter as soon as we are going to be in PB2019 R2 because currently we are still in PB2017 R3.



Hopefully the size of the files will be further reduced with this setting unlike the other in pb.ini.



This is not a custom font actually, the font in question is Consolas, a default font in Windows 10, but mobiles do not seem to have this default font. As the PDf can be sent by email, the result is not very conclusive in display.



Patrick

  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 20 January 2020 18:55 PM UTC
Yes, some fonts may not render on Mobile devices. However, you may also have to play around with the PDF type in order to get things 100% on mobile devices.
  1. Helpful
There are no comments made yet.
Michael Hartnett Accepted Answer Pending Moderation
  1. Monday, 20 January 2020 16:28 PM UTC
  2. PowerBuilder
  3. # 3

Hi Patrick,

It requires an update to your PB.INI file.

https://community.appeon.com/index.php/qna/q-a/pdf-saveas-embed-font

You can read the above thread for more details.

HTH

Michael

Comment
  1. Patrick Therrien
  2. Monday, 20 January 2020 18:04 PM UTC
Thank you Michael!



After adding the section mentioned in the pb.ini, unfortunately, it doesn't seem to work properly.



My PDF went from 81kb to 2629kb and when I look in the properties of the PDF with Adobe Reader, I still don't see that the font is embedded and the display on the mobile viewer is still not correct.







  1. Helpful
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.