Bug 148680 - PDF export: option buttons not working in Linux Document Viewer (xreader/evince) while working in some others
Summary: PDF export: option buttons not working in Linux Document Viewer (xreader/evin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2022-04-20 07:52 UTC by Lambert
Modified: 2022-05-15 00:32 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer Document containing radio button control (10.95 KB, application/vnd.oasis.opendocument.text)
2022-04-20 07:56 UTC, Lambert
Details
PDF Document containing radio button control (17.37 KB, application/pdf)
2022-04-20 07:56 UTC, Lambert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lambert 2022-04-20 07:52:35 UTC
Description:
Radio buttons on a Writer document form exported to PDF are not selectable if the PDF is opened in Document Viewer. When the PDF is opened in a browser (tested in Opera) or on Windows using Acrobat Reader the radio buttons work as expected.

Steps to Reproduce:
1. Create a new Writer document
2. Add a radio button form control
3. File / Export as / Export as PDF...
4. Ensure that Create PDF Form is checked and use format FDF
5. Export and save the PDF
6. Open the PDF in Document Viewer
7. Try to select the Radio button

Actual Results:
Radio button can't be selected.

Expected Results:
Radio button is selected.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Tried this on LO 6.3 (using Linux Mint Software repo) and LO 7.3 downloaded manually on Linux Mint 20.3 and Linux Mint 20.2 (two different systems)
Comment 1 Lambert 2022-04-20 07:56:00 UTC
Created attachment 179676 [details]
Writer Document containing radio button control
Comment 2 Lambert 2022-04-20 07:56:34 UTC
Created attachment 179677 [details]
PDF Document containing radio button control
Comment 3 Timur 2022-04-22 09:39:34 UTC
I confirm the description but:
- option button not working in xreader and xpdf but is working in Master PDF Editor and Adobe Reader 9 in Linux
- not working in older PDF-Xchange Viewer is working in newer Xchange Editor and in Adobe Reader 2022 in Windows

Still, it worked before LO 6.3 so I'll confirm, unless explained why this wouldn't be a bug.

commit 76b5dca9dc0ff60f8f62cbecdee68f8f3b287ceb	
author	Thorsten Behrens <Thorsten.Behrens@CIB.de>
tdf#113448 don't export any font for radio buttons
Comment 4 Timur 2022-04-22 09:40:38 UTC Comment hidden (obsolete)
Comment 5 Julien Nabet 2022-04-22 10:30:28 UTC
(In reply to Timur from comment #4)
> Julien,m you fixed bug 127217 after a long time and many duplicates, can you
> please comment here.

I gave a try on Windows, it works with Edge.
I gave a try on Linux, Gnome viewer, it failed.
Weird.
Comment 6 Julien Nabet 2022-04-22 11:38:55 UTC
Miklos: How to know if the pdf is indeed correct?
I tried to find some PDF online validator but not very useful.
I mean, perhaps some PDF clients are buggy (since depending on the client, click may work or not).
Comment 7 Miklos Vajna 2022-04-22 11:47:45 UTC
https://docs.verapdf.org/cli/validation/ might be useful. I haven't tried it myself, I only recently discovered it.

Last time I needed a PDF validator, I used https://www.pdf-online.com/osa/validate.aspx -- but that sucks a bit, as it's an online-only tool. I hope of these do what you need. :-)
Comment 8 Julien Nabet 2022-04-22 12:03:04 UTC
(In reply to Miklos Vajna from comment #7)
> https://docs.verapdf.org/cli/validation/ might be useful. I haven't tried it
> myself, I only recently discovered it.
It seems we need to retrieve the source, I suppose from https://github.com/veraPDF/veraPDF-validation then build, then test.
I git cloned the repo, then noticed I had to install maven so Java tool.
I haven't tried yet, I thought there would be standard tools (ideally in C/C++).

 
> Last time I needed a PDF validator, I used
> https://www.pdf-online.com/osa/validate.aspx -- but that sucks a bit, as
> it's an online-only tool. I hope of these do what you need. :-)

I had found this one but it just returned:
"
File	testjul.pdf
Compliance	pdf1.6
Result	Document does not conform to PDF/A.
Details	

Validating file "testjul.pdf" for conformance level pdf1.6

The operator has an invalid number of operands.

The document does not conform to the requested standard.

The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).

The document does not conform to the PDF 1.6 standard.

Done.
"

I wish it would be more verbose and indicate what are the pbs.
Comment 9 Miklos Vajna 2022-04-22 13:30:55 UTC
CC Thorsten in case they are aware of some pdf validator, better than verapdf.