pdftk fill_form utf8 problems [duplicate]

无人久伴 提交于 2019-12-07 03:22:48

问题


Possible Duplicate:
Flatten FDF / XFDF forms to PDF in PHP with utf-8 characters

I am using pdftk to fill template pdf with data from fdf. Data has correct utf-8 characters, but when I use fill_form, resulting pdf file has formating errors. (I am NOT using flatten)

I have problems with letters like š, đ, č, ć, ž.

Thanks.

UPDATE My solution

In the end, I gave up on pdftk, I ended up using fpfd, to be more precise, I used this script. I had couple of problems here too, related to the pdf file. But I used pdftk to fix that pdf (as was suggested in the script itself), and in the end it helped me: it filled the pdf form I had with the characters without messing them up.


回答1:


pdftk (as of v1.44) can't handle chars outside the standard ASCII with FDF form fill. Someone did try to modify pdftk to allow multi-byte characters to support Asian languages, but from the comments I'm not sure it actually works.

http://blog.rubypdf.com/2007/07/19/pdftk-supports-chinese-path-now/

Related Questions:

Flatten FDF / XFDF forms to PDF in PHP with utf-8 characters

pdftk + xfdf + php can't handle umlauts



来源:https://stackoverflow.com/questions/14475350/pdftk-fill-form-utf8-problems

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!