Package: pdftk
Version: 1.40-2
Severity: normal

Hi,

In the form available at [1] (which is a form for reporting some taxes
to the Finnish tax authority), the command

  pdftk 9a2006.pdf generate_fdf output 9a2006.fdf

generates fdf where the field names are garbled into 16-bit characters
that look like UCS-2 (by taking every second character, they make
sense). This is how it looks like in my emacs:

------------------------------------------------------------
%FDF-1.2
%âãÏÓ
1 0 obj 
<<
/FDF 
<<
/Fields [
<<
/V (þÿ)
/T ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED])
>> 
<<
/V (þÿ)
/T ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@o)
>> 
[...]
------------------------------------------------------------

The field names should probably be "Paivays" and "tappio" ("päiväys"
and "tappio" are valid Finnish words), not "[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]"
and "[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@o".

Similarly, it seems I need to enter the contents in UCS-8 format -
otherwise, curiously, the fill_form operation tries to eat all my
memory.

        Sami


[1] http://www.hut.fi/~sliedes/9a2006.pdf

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.20.4-grsec-sli
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages pdftk depends on:
ii  libc6                         2.5-4      GNU C Library: Shared libraries
ii  libgcc1                       1:4.1.2-4  GCC support library
ii  libgcj7-0                     4.1.1-20   Java runtime library for use with 
ii  libstdc++6                    4.1.2-4    The GNU Standard C++ Library v3

pdftk recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to