1. Tomas Beran
  2. PowerBuilder
  3. Tuesday, 21 May 2024 12:04 PM UTC

Hi

According to the documentation

https://docs.appeon.com/pb2022/pbug/Saving_data_in_an_external_file.html#Saving_as_PDF_using_PDFlib

PB can embed custom fonts into generated PDF file.

Which fonts are considered as 'custom'? If I check this field 'Packaging custom fonts in the generated PDF' then Arial font (which is not custom) is embedded into PDF. Which results into unwanted significant size grow.

1. How to say which font is a custom font?

2. Is it possible to set 'Packaging custom fonts in the generated PDF' application property from code?

3. Is there any other option how to embed a font into PDF generated from DW?

Thank you

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 21 May 2024 14:22 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Tomas -

I suggest you examine and experiment with the "PDFStandard" property, which can be set dynamically as needed. Look at the PB Help topic named "Export.PDF.NativePDF.PDFStandard property (DataWindow object)". I'm not an expert, but it appears that using a property value of 2 (to specify use of PDF archive standard PDF/A-1b) might be useful.

You can find more information regarding PDF Archive standards here:

    https://en.wikipedia.org/wiki/PDF/A

HTH, Best regards, John

Comment
There are no comments made yet.
Tomas Beran Accepted Answer Pending Moderation
  1. Tuesday, 21 May 2024 14:21 PM UTC
  2. PowerBuilder
  3. # 1

I've found a partial solution: If I set PDF/A1 compatibility for a specific DW then it seems all used fonts are embedded. So with this method I can choose which PDF embeds fonts.

Comment
There are no comments made yet.
David Peace Accepted Answer Pending Moderation
  1. Tuesday, 21 May 2024 13:03 PM UTC
  2. PowerBuilder
  3. # 2

Hi

I think it shoud read that it embeds all fonts into the PDF, we have had to switch to use this option due to Apple IOS not having some fonts being used in PB and the PDFs not rendering properly. The problem is knowing what fonts are going to be in the target OS that is rendering the PDF.

I guess it's not a lot of help, but you either take the size hit or suffer rendering problems.

Regards

David

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.
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.