I am trying to fill a PDF field with Chinese characters from fdf or xfdf.
So far I have tried pdftk, mcpdf, pdfbox and fpdm.
All of them can receive characters in the field, but they are not displayed. When I click on an editable field, the characters are displayed as expected, but when I exit the field again, they disappear. If I enter English, they do not display correctly, for example, βhelloβ becomes βIFMMPβ.
All this led me to the fact that I suspect that this is a problem with font and character cards, I tried to embed the full font in pdf, and it did not matter. I installed fonts on the machine to no avail.
If I edit the pdf and fill in the field in Acrobat, it will accept Chinese characters without any problems, and I can view the PDF file in the reader. I tried using pdftk from the command line on the same windows machine and I have the same problem.
I need this to work in a Linux environment, and preferably in python or through a command line script, but in fact at this point I just want it to work at all! I have enclosed an example pdf, fdf, xfdf and the conclusion that it creates, any help would be greatly appreciated since I ran out of ideas. I used the command:
"pdftk test_form.pdf fill_form test.xfdf output output.pdf verbose"
https://drive.google.com/folderview?id=0B6ExNaWGFzvnfnJHSC1ZdXhSU2RQVENjYW56UkZyYWJMdWhZTkpQYkZBcUs0Tjhjb0NITVE&usp=sharing