PDF form fields encoding problem while convert to jpg

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tempik
Posts: 1
Joined: 2014-02-27T15:56:36-07:00
Authentication code: 6789

PDF form fields encoding problem while convert to jpg

Post by tempik »

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.
Post Reply