jkraemer / pdf-forms

Fill out PDF forms with pdftk (http://www.accesspdf.com/pdftk/).
MIT License
287 stars 73 forks source link

Additional FDF data format with better support for accented characters #59

Closed iobaixas closed 7 years ago

iobaixas commented 7 years ago

Hi there!

I was having problems feeding accented characters to pdf using the existing data formats. Poking around I found this:

http://stackoverflow.com/questions/6047970/weird-characters-when-filling-pdf-with-pdftk

Apparently some characters above U+00FF can only get through using the UTF16 hexadecimal notation. So for example, the value "foo" renders as <FEFF0066006F006F>.

This PR implements an additional data format that inherits from PdfForms::Fdf and renders values using the above notation.

This is related to #57.

jkraemer commented 7 years ago

merged, thanks!