Bug 431792

Summary: PDF Form checkbox state cannot been seen when form is hidden
Product: [Applications] okular Reporter: andreaswuest
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, antonioni.rocha, bzipitidoo, clushkou, leonard, shawn.peterson
Priority: NOR    
Version: 20.12.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Okuklar 1.11.1 with forms enabled -> ok
Okular 1.11.1 with forms disabled again -> selection is not visible anymore
Acrobat Reader - just for comparison
PDF file showing the problem

Description andreaswuest 2021-01-18 19:43:22 UTC
SUMMARY


STEPS TO REPRODUCE
1. open the attached pdf and show the form.
2. click some of the checkboxes in the lower part of the form (column with header "richtig" oder "falsch" - this works fine with this version
3. now hide the form again

OBSERVED RESULT
it is not visible which checkboxes have been checked. 

EXPECTED RESULT
you can see which checkboxes have been check when form is hidden again (in acrobat you can see that) - see attached screenshots.

SOFTWARE/OS VERSIONS
Windows: Windows 10
Okular Version 1.11.1 from the windows store.
Comment 1 andreaswuest 2021-01-18 19:44:16 UTC
Created attachment 134983 [details]
Okuklar 1.11.1 with forms enabled -> ok
Comment 2 andreaswuest 2021-01-18 19:47:36 UTC
Created attachment 134984 [details]
Okular 1.11.1 with forms disabled again -> selection is not visible anymore
Comment 3 andreaswuest 2021-01-18 19:48:37 UTC
Created attachment 134985 [details]
Acrobat Reader - just for comparison

The checkboxes in this case look much nicer - but that is a different story.
Comment 4 andreaswuest 2021-01-18 19:50:10 UTC
Also the Acrobat reader does not display any text, but just big checkboxes - it would be nice if the same could be achieved for okular.
Comment 5 Albert Astals Cid 2021-01-19 21:15:00 UTC
Can we have the actual file?
Comment 6 andreaswuest 2021-01-20 20:28:41 UTC
Created attachment 135027 [details]
PDF file showing the problem

Sorry for the missing attachment - i have attached the file now.
Comment 7 Albert Astals Cid 2021-01-20 21:41:21 UTC
Probably an issue in poppler, but needs investigation.
Comment 8 Leonard Lausen 2021-03-05 03:38:35 UTC
I have reproduced this issue with Okular 20.12.2 and Poppler 21.03.0.
I opened the "PDF file showing the problem" in Okular, clicked "Show forms" ticked a box, hide the forms and saved the file. The box no longer shows up after hiding the forms.

I further confirmed that Evince, which is also based on poppler fails to show the checked box. In fact, clicking any other box in Evince will also fail to show.

Finally, I confirmed that opening the modified PDF in either Master PDF Editor [1] or Firefox 86 does show the ticked box.

Thus I agree with Albert that this is most likely a poppler bug. @Andreas, would you like to report the bug at https://gitlab.freedesktop.org/poppler/poppler/-/issues/ ?

[1] https://code-industry.net/masterpdfeditor/ a proprietary PDF software with Linux support
Comment 9 Leonard Lausen 2021-03-05 03:52:16 UTC
I opened a related bug at https://bugs.kde.org/show_bug.cgi?id=433979 which however, unlike the current one, is not reproducible with Evince.
Comment 10 Brenton Chapin 2021-11-08 21:42:51 UTC
I filed a bug on a similar problem, with radio buttons: https://bugs.kde.org/show_bug.cgi?id=442849

It appears forms are badly broken.  I have even seen, in every version up to 21.08.1, text entry boxes that won't display the user entered text, if it's after a radio button or check mark box.
Comment 11 Shawn 2023-09-24 22:40:05 UTC
Just for future reference, it seems that Andreas did file a bug report for poppler: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1055
Comment 12 toni_rocha 2023-09-25 00:52:12 UTC
After 2 years with this annoying bug, all I can do is continue using browsers to work with PDFs with forms.
Comment 13 andreaswuest 2023-10-05 19:45:11 UTC
looks like i am not the only one annoyed by the bug -> shall collect some money to sponsor the work/fix ?
=> https://discuss.kde.org/c/development/sponsored-work/31