Comment 0 for bug 663603

Revision history for this message
localhorst (mterber) wrote : pdftk does not support UTF-8 encoded source data with -flatten option

Binary package hint: pdftk

Scenario on
Ubuntu 8.04.4 LTS
pdftk 1.41-3

    * A PDF template with formfields: template.pdf
    * A XFDF file that contains the data to be filled in: fieldData.xfdf

Now I need to have these to files flattened. pdftk does the job easily within php:

   pdftk template.pdf fill_form fieldData.xfdf output flatFile.pdf flatten

Unfortunately this does not work with full utf-8 support. For example: Cyrillic and greek letters get scrambled and replaced by squared placeholders. I used Arial for this, with an unicode character set. Alternatively Bitsream Sans.

I installed libicu4j-java for full unicode support, but it didn't help.