Bug 302334 - (some) Checkboxes in PDF-Forms left unchecked when printing
Summary: (some) Checkboxes in PDF-Forms left unchecked when printing
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.14.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 08:53 UTC by Alvaro Aguilera
Modified: 2012-09-16 15:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Form where the problem sometimes occurs (325.49 KB, application/pdf)
2012-07-13 07:16 UTC, Alvaro Aguilera
Details
Stripped version of the example file (6.05 KB, application/pdf)
2012-07-13 20:46 UTC, Fabio D'Urso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Aguilera 2012-06-22 08:53:08 UTC
Hello guys,

I use Okular to fill in the blanks of some PDF forms and print out the form. The problem I've been experiencing for the past year or so is that some of the checkboxes I mark as checked are left unchecked when I print out the document. 

Unfortunately I don't know how to reproduce the problem. I guess you can create a PDF form with some checkboxes in it, check some of them and print out the document. In my case, the forms were created using Acrobat PDF Marker 9.1 and Distiller 9.4.5.

Note that when I close the document and open it again, the checkboxes that were wrongly printed out as unmarked, are shown as marked. So the metadata is still there. 

Perhaps it has something to do with the layout and the "x" is simply being hidden by another field.


Reproducible: Sometimes
Comment 1 Albert Astals Cid 2012-07-05 16:39:45 UTC
File to reproduce the problem?
Comment 2 Albert Astals Cid 2012-07-11 21:11:28 UTC
Waiting for the file...
Comment 3 Alvaro Aguilera 2012-07-13 07:16:59 UTC
Created attachment 72493 [details]
Form where the problem sometimes occurs

The problem happens very often with the checkboxes on the top (e.g. "Dienstreise"), but also with the others.
Comment 4 Albert Astals Cid 2012-07-13 17:39:45 UTC
Works for me, which poppler version do you use?
Comment 5 Alvaro Aguilera 2012-07-13 18:08:47 UTC
rpm -qa|grep poppler
libpoppler7-0.14.4-6.1.x86_64
poppler-tools-0.14.4-6.1.x86_64
libpoppler-qt4-3-0.14.4-6.1.x86_64
poppler-data-0.4.4-2.1.noarch
libpoppler-glib5-0.14.4-6.1.x86_64

it happens to me most of the time that some of the checkboxes aren't printed out. Unfortunately I haven't found a way to reproduce the problem yet. I didn't try hard though ;) When I find the way to reproduce it, you'll be the first to know about it.
Comment 6 Fabio D'Urso 2012-07-13 18:18:00 UTC
I don't understand the language, so I don't know how the form is supposed to behave.

With git master of both poppler and okular, the three top checkboxes give me the following behavior:
Okular's GUI allows multiple selections, while poppler only allows a single check at a given time (not really sure it's poppler fault, the bug might still be in okular).
What I get is that only the most recently selected checkbox I check is printed correctly. There's clearly some mismatch in the selection logic: we have to decide, either single choice or multiple choices :)

P.S.: acroread only allows single choice
Comment 7 Alvaro Aguilera 2012-07-13 18:47:31 UTC
I think Fabio may be right and the problem occurs when I select more than one checkbox and then try to deselect some of them.
Comment 8 Fabio D'Urso 2012-07-13 20:46:49 UTC
Created attachment 72514 [details]
Stripped version of the example file

It only contains the three top checkboxes (much easier to debug)
Comment 9 Albert Astals Cid 2012-09-16 15:55:10 UTC
Will be fixed in poppler 0.22