PDF form fields encoding problem while convert to jpg
Posted: 2014-02-27T16:01:20-07:00
Hi,
When I flatten pdf or convert to jpg I have Byte order mark (BOM) þÿ character in beginning of every field and ISO-8859-1 encoding. What can I do to properly flatten pdf form fields text? Please help me.
I make pdf files with forms in Scribus, embed ttf font, next I fill forms in php and flatten files to jpg by ghostscript or imagemagick, but I have problem with conversion to image. Every field has þÿ characters after flatten. It looks that it is problem with encoding, but pdf file forms fields value it seems properly utf16be encoded.
Maybe someone have a example pdf file with forms fields and ttf font embed that after convert to image looks the same.
When I flatten pdf or convert to jpg I have Byte order mark (BOM) þÿ character in beginning of every field and ISO-8859-1 encoding. What can I do to properly flatten pdf form fields text? Please help me.
I make pdf files with forms in Scribus, embed ttf font, next I fill forms in php and flatten files to jpg by ghostscript or imagemagick, but I have problem with conversion to image. Every field has þÿ characters after flatten. It looks that it is problem with encoding, but pdf file forms fields value it seems properly utf16be encoded.
Maybe someone have a example pdf file with forms fields and ttf font embed that after convert to image looks the same.