[poppler] [PATCH] Do not force checkboxes to change in unison
Michael Vrable
mvrable at cs.ucsd.edu
Tue Feb 19 08:43:56 PST 2008
I've been having trouble with checkboxes in some PDF forms.
Specifically, in http://www.irs.gov/pub/irs-pdf/f1040.pdf there are some
groups of checkboxes (such as near line 1 and after line 77). In these
groups with the current poppler head, selecting one of the checkboxes
causes all of them to be drawn as selected, which is not the desired
behavior.
The attached patch should be a fix for this problem. I've tried to keep
it simple.
(Longer-term, I've been wondering if it is better to use the appearance
streams in the appearance dictionary for drawing the checkbox states, if
available, instead of always regenerating the check ourselves. But that
is a larger change, so I've avoided it for the moment.)
--Michael Vrable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkbox.patch
Type: text/x-diff
Size: 1357 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20080219/989e3bc4/attachment-0001.patch
More information about the poppler
mailing list