We are using the Pega OOTB activity pxCreatePDF to convert our section into a PDF file. Though it works well for english language we noticed that the text is garbled for a chinese language user.
Please let us know how we can fix this. We are using Pega 8.4.6 version.
I can see that ticket INC-228732 was logged and the final resolution was as follows:
The language fonts were not available in the fonts directory of the server.
Once added the below approaches resolved the issue :
In order to support non-ascii characters for HTMLTOPDF conversion need to specify the JVM-WIDE setting ‘file.encoding’ property - and set this to ‘UTF-8’ which is -Dfile.encoding=UTF-8.
Added the below in compact style sheet css file : examples for reference : @font-face {
font-family: “MS Mincho”,Helvetica,Helvetica-Bold;
src: url(“/fonts/NotoSansCJKjp-Regular.ttf”) format(“ttf”),
url(“/fonts/NotoSansCJKjp-Regular.ttf”) format(“ttf”);