I’m using the PowerBuilder 2019R2 (2353) NativePDF way (PBPDF190.dll) to create PDF docs:
lds_Print.Object.DataWindow.Export.PDF.Method = NativePDF!
lds_Print.Object.DataWindow.Export.PDF.NativePDF.ImageFormat = '2' // 'PNG'
lds_Print.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
lds_Print.Object.DataWindow.Export.PDF.NativePDF.PDFStandard = 0
li_rc = lds_Print.SaveAs( "c:\temp\file.pdf", PDF!, FALSE )
I discovered that some fonts are embedded in the PDF doc and some are not. If a used font is not present at the viewers site no text is displayed when viewing the PDF doc with acrobat reader.
Is there a way to control which and how fonts are embedded?
Thanks in advance
Bernhard
Thanks for submitting ticket 6911.
I can reproduce it on our side. Currently the NativePDF doesn't support using AddFontResourceEx function to mark a font as private or not enumerable.
So in your test case, you must use the AddFontResourceW and RemoveFontResourceW functions instead of the AddFontResourceExW and RemoveFontResourceExW functions because when ‘packaging custom fonts in the generated PDF file’ is checked, the custom fonts must be a public or enumerated type. Otherwise, it will have permission issues and fail to load the custom font when using the NativePDF feature.
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-addfontresourcew
Regards,