Can OpenPDF display Chinese characters? #805
-
Hi I have an app that can be used in Chinese and i want the data from the Room DB to be exported to PDF using OpenPDF. Currently when OpenPDF gets to a field that has Chinese characters in it, the field on the actual exported PDF is blank. So can OpenPDF output Chinese characters? Am i missing something? Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's important do use a font supporting Chinese. Embbeding the font should help. Take a look at some examples using non-latin. pdf-toolbox/src/main/java/org/librepdf/openpdf/examples/fonts/languages/Chinese.java |
Beta Was this translation helpful? Give feedback.
It's important do use a font supporting Chinese. Embbeding the font should help. Take a look at some examples using non-latin.
Take a look at:
pdf-toolbox/src/main/java/org/librepdf/openpdf/examples/fonts/languages/Chinese.java
or
pdf-toolbox/src/test/java/com/lowagie/examples/fonts/getting/ChineseJapaneseKorean.java