[Html2PdfConverter] Unicode Compatibility in HtmlToPdfConverter

Forge Component
(52)
Published on 2018-10-30 by Guilherme Pereira
52 votes
Published on 2018-10-30 by Guilherme Pereira

Hi Guys,

Having a problem with Unicode characters, I'm using the latest version 10 of the HtmlToPdfConverter.


Any solutions for this issue. Thanks

Solution

Hi Guys,


We found a solution to this problem, specifically reading Chinese characters.

1. First you need to download a font that supports Chinese characters, Noto Sans CJK SC is what we used, and then import it on your resources.

2. Then add the font in the style sheet of the web screen that you will be printing.

3. I placed an argument "--encoding UTF-8" on the otherargs property of the action just to be sure, but i don't know if it is really needed. 

4. If you have a table record in your pdf. You need to force the font family in the expression's extended property style to make it work on your table record's fields


Cheers,

Kyle

Solution