After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746020 - In a PDF Form it is impossible to re-select radiobox selected by default
In a PDF Form it is impossible to re-select radiobox selected by default
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: PDF
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
http://www.tcpdf.org/examples/example...
Depends on:
Blocks:
 
 
Reported: 2015-03-11 10:02 UTC by Alain Knaff
Modified: 2018-11-11 16:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32


Attachments
Form with radio button generated by Word Libre Office (16.11 KB, application/pdf)
2017-03-27 14:56 UTC, Miloud Boutouba
Details
An attachment with radio button only (29.42 KB, application/pdf)
2017-04-05 17:24 UTC, Miloud Boutouba
Details

Description Alain Knaff 2015-03-11 10:02:09 UTC
[Some form elements behave strangely, as seen by the example at http://www.tcpdf.org/examples/example_014.pdf
I'm speaking here about behavior of basic elements (radiobox selection), not the javascript part (which I know is not supported)]

If a radiobox is preselected (as "Beer" in the example), it can no longer be re-selected after a different box has been selected. In the example, after selecting Wine, you cannot get back to Beer. This may be sound advice to avoid a hangover, but I don't think this is the intent of the form author :-)
Comment 1 Alain Knaff 2015-03-11 10:03:22 UTC
Sorry, radio_button_, not radiobox :-)
Comment 2 Miloud Boutouba 2017-03-27 14:56:55 UTC
Created attachment 348808 [details]
Form with radio button generated by Word Libre Office

Hi, the bug seem didn't come from evince.
In my attachment you can see an exemple of a form with 4 buttons radios generated by Word Libre Office.

The first button is checked by default and you can reach it again after you select another button.
Comment 3 Miloud Boutouba 2017-03-27 15:17:52 UTC
Here is a small synthesis of the tests I've done so far:

PDF file generated with Libreoffice writer
 - no problems with any reader (evince, okular, chromium)

PDF file generated with TCPDF 
 - chromium - works correctly
 - evicen - doesn't work (see bug description)
 - okular - strange behaviour, do not act as expected

Do someone have an idea about what could be wrong? I'm interested in resolving this bug and will start inspecting the code. If someone has a clue about where to begin, please do share.
Comment 4 Jason Crain 2017-03-27 15:50:22 UTC
Since okular has similar problems, it's probably a bug in poppler.
Comment 5 Miloud Boutouba 2017-04-05 16:38:44 UTC
Hi Jason Crain, thank you for your answer.

I have upgrade my poppler on Ubuntu 15.10 and the problem still the same.

There is a poppler in the evince source. You can reach it at : backend/pdf/ev-poppler.cc

I've checked it and I think there is no problem.

Currently I've no idea to fix the problem. If you (anybody) have some clue, please do share.
Comment 6 Germán Poo-Caamaño 2017-04-05 16:58:11 UTC
I think Jason meant to say that bug is in Poppler, and therefore the bug should be filed in Poppler's Bugzilla:
https://bugs.freedesktop.org/enter_bug.cgi?product=poppler

I can reproduce the issue using Evince master with recent version of poppler.

I would try to keep the test case as small as possible. For example, leaving only the radio button.
Comment 7 Miloud Boutouba 2017-04-05 17:24:17 UTC
Created attachment 349309 [details]
An attachment with radio button only

Hi, Germán Poo-Caamaño

Here is what you want.
Comment 8 Jason Crain 2017-04-05 17:56:32 UTC
(In reply to Miloud Boutouba from comment #5)

Poppler is the PDF rendering library used by evince.  It's a separate project.  It's homepage is at https://poppler.freedesktop.org/.  The git repository is at https://cgit.freedesktop.org/poppler/poppler.  The files in evince's backend/pdf directory just translate between poppler's API and evince's document model.

I don't plan on looking into this myself, but if you want to try to track the problem down yourself, poppler's poppler/Form.cc file is a good place to start.
Comment 9 Miloud Boutouba 2017-04-11 23:09:21 UTC
Thank you for your answer.

Bug filed on poppler bug tracker.

URL : https://bugs.freedesktop.org/show_bug.cgi?id=100535
Bug id : 100535
Comment 10 GNOME Infrastructure Team 2018-05-22 16:10:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/579.
Comment 11 Nelson Benitez 2018-11-11 16:23:31 UTC
Commenting just to let reporter Alain to know that a fix for this bug is on the way on https://gitlab.freedesktop.org/poppler/poppler/issues/159