Public bug reported:

Binary package hint: pdftk

The generate_fdf command appears not to properly extract checkbox
fields, as merging the extracted FDF back in with fill_form changes the
values in the PDF. Extracting and then merging the FDF information
without editing it should result in an unchanged document. To verify:

$ wget http://www.irs.gov/pub/irs-pdf/f1040.pdf
$ pdftk f1040.pdf generate_fdf output f1040.fdf
$ pdftk f1040.pdf fill_form f1040.fdf output f1040-fill.pdf
$ evince f1040{,-fill}.pdf

Checkboxes (some of them actually radio buttons, some of them plain
checkboxes) in f1040-fill.pdf will be checked; the corresponding fields
in f1040.pdf are not marked.

I don't know exactly which stage of the process isn't working, but my
best guess is that checkbox and radio button fields aren't being
extracted properly. In the file, fields are labeled either (with numbers
in place of #s) f#_#(0) or c#_#(0). Putting values in the f-fields
causes them to show up in the form, but putting values in the c-fields
does not. Additionally, while the f-field sections in the FDF look like
this (all FDF excerpts were manually converted to ASCII; see bug
192398):

<<
/V ()
/T (f2_20\(0\))
>> 

the c-fields look like this:

<<
/V /
/T (c2_13\(0\))
>> 

I don't think this is a valid field entry, though I'm not familiar with
FDF syntax.

I am running pdftk 1.40-2ubuntu3 on Ubuntu Dapper.

** Affects: pdftk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
generate_fdf followed by fill_form changes checkbox fields
https://bugs.launchpad.net/bugs/192410
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to