1. Mark Del Villan
  2. PowerBuilder
  3. Thursday, 19 September 2024 13:48 PM UTC

Hi,

Just wondering if anyone has experience with printing/exporting reports in multiple languages using PB's native PDFlib functionality, and if so whether anyone can confirm my understanding and let me know if I'm missing anything.  We are currently using PB2022R2.

Our app can be configured to create PDFs via either (a) PDFlib OR (b) the old-school method of sending to a PS Printer Device and passing the resulting PS file to Adobe Distiller.  

When the app is configured to use the old-school method, everything works fine.  When the app is configured to use PDFlib, we encounter issues with certain special characters (e.g. we are inserting Zero Width Joiner into strings to help support Kinsoku Shori wrapping rules for the Japanese Language) that results in extra visible characters being present in the string.  We have found that this can be fixed by specifying the appropriate font.charset (e.g. font.charset='128' for Japanese).

This fix is sort of strange to me, because we have not needed to use the font.charset properly for many years, since we converted our language content from native encodings to Unicode.

So, I'm wondering (a) should font.charset always be populated as a best practice, even when it seems to be unnecessary and (b) is it expected that PDFlib would require an encoding to be specified and other methods do not?

Thanks for reading and sharing your thoughts!

Mark

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 19 September 2024 15:36 PM UTC
  2. PowerBuilder
  3. # 1

Hi Mark;

  I am pretty sure that the native PDF support in the latest PB version does not support the "Kinsoku Shori" wrapping rules, please open a Support Ticket as an enhancement request for this feature.  Thanks!

Regards .. Chris

Comment
  1. Mark Del Villan
  2. Thursday, 19 September 2024 15:40 PM UTC
Done! Thanks for the advice. Just want to note that I'm still wondering about the relevance of the font.charset property, though.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 19 September 2024 17:08 PM UTC
That only applies when "embedding" custom fonts within the PDF document.
  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.