I am having problems writing some Chinese characters to a PDF using wPDF 3.62.0.1. I wrote a small program to read text from a file and write it to the PDF. The code structure is arcane, because it mimics the structure of the actual application: I know that it could be written in a less convoluted manner.
Please download http://www.jonbondy.com/wPDF-Chinese.ZIP to see the following files:
Chinese Text.txt: contains the Chinese text that is used to create the PDF;
PdfTest.dpr, pas, and dfm: the test program itself
Test.pdf: the output of the test program
Test Chinese PDF.PNG: this shows the Chinese Text.txt file and the Test.pdf file, on a computer that has the Chinese character set installed. If you look carefully, you will see 4 blue boxes on the PDF that highlight the four characters that are displaying as "?" rather than correctly. If you look at the Notepad image, you will see the correct underlying text.
Is this a known bug? Is there a workaround or fix?
Thank you!
Jon