Defect #1581
Foreign text not rendering in PDF
0%
Description
If we use text like 'คำแนะนำของช่างที่เข้าหน้างาน' It is not rendered to the pdf. Could this be that the plugin uses an old version of iText that doesn't support UTF_8?
If we just look at the html file output it looks fine. So it is not the font.
History
Updated by Patrick Talbot over 3 years ago
I think the problem is more in the xhtmlRenderer library (Flying Saucer), because this text is not displayed in preview either.
I'm using the last version of this library (same that Servoy is using: lib/fs-commons & fs-parser - for css and html parsing), and I'm afraid there's no new release with fixes.
On my end, I'm using UTF-8 across the board (which is the standard for Java String anyway), so I'm not sure I'll be able to fix the issue as this looks like the problem lies deep in the rendering code.
Updated by Sanneke Aleman over 3 years ago
Thanks for your fast reaction. I think I will move the pdf rendering to angular : https://remotestack.io/how-to-convert-html-into-pdf-document-in-angular/