Bug 160285 - checkbox state [X] not visible in Evince
Summary: checkbox state [X] not visible in Evince
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2024-03-20 07:30 UTC by raal
Modified: 2024-09-05 18:04 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
How the exported PDF looks in Firefox 130 (from Ubuntu) and Evince 46 (from Fedora 40 running in distrobox) (507.74 KB, image/png)
2024-09-05 15:09 UTC, Gabor Kelemen (allotropia)
Details
The example file unpacked - for convenience (152.08 KB, application/vnd.oasis.opendocument.text)
2024-09-05 15:10 UTC, Gabor Kelemen (allotropia)
Details
The file exported to PDF with Forms enabled (168.17 KB, application/pdf)
2024-09-05 15:11 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raal 2024-03-20 07:30:08 UTC
Description:
Checkboxes are exported, but their status not - they are not checked [X] in Evince. Everything is OK in Firefox. Of course, it looks like Evince's bug, but these checkboxes were correct in Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Evince version 42.3

Steps to Reproduce:
open file https://bugs.documentfoundation.org/attachment.cgi?id=193201
Export to pdf

Actual Results:
Checkboxes are exported, but their status not - they are not checked [X] in Evince.

Expected Results:
Status [X] visible in Evince.


Reproducible: Always


User Profile Reset: No

Additional Info:
.
Comment 1 raal 2024-03-20 07:32:02 UTC
This seems to have begun at the below commit in bibisect repository/OS bibisect-linux-64-6.4.
Adding Cc: to Thorsten Behrens ; Could you possibly take a look at this one?
Thanks
 7db3657f81c715b6c883860248d2a43d83525d79 is the first bad commit
commit 7db3657f81c715b6c883860248d2a43d83525d79
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jul 2 20:04:54 2019 +0200

    source 35f71c648c45769d4cc75f8b422bcdb020916a73

74995: tdf#113448 Export font used for checkbox mark | https://gerrit.libreoffice.org/c/core/+/74995
Comment 2 Stéphane Guillou (stragu) 2024-03-20 13:52:44 UTC
Reproduced for Evince in:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 53c5d570cab036b23f4969b858a648c8f0c24f93
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

...but I can see them (and interact with them) in Firefox and Chromium, as well as Okular if I click "Show Forms".

The file named "result_7_6_5_2.pdf" shows the tick marks in Evince but does not allow any interaction in any PDF reader. Can you clarify how that fits in the 6.4 regression?
My export in 7.6 does include the interactive form controls.
Comment 3 raal 2024-03-21 07:12:07 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> 
> The file named "result_7_6_5_2.pdf" shows the tick marks in Evince but does
> not allow any interaction in any PDF reader. Can you clarify how that fits
> in the 6.4 regression?
> My export in 7.6 does include the interactive form controls.

Hello, this is not relevant for this bug. After suspected commit the form is editable in Firefox.
Comment 4 Stéphane Guillou (stragu) 2024-03-21 07:52:18 UTC
Seeing that other PDF readers are showing the checkbox states properly, I'd say this is "not our bug". See https://gitlab.gnome.org/GNOME/evince/-/issues/1903 (although it is mentioned there that the PDF tested comes from LO).

Thorsten, what do you think?
Comment 5 BogdanB 2024-08-24 13:50:29 UTC
I exported now the File.odt with 24.8 and open the PDF with Evince and the checkboxes are visibile, everything seems fine now.

Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

Evince 46.0
Comment 6 Gabor Kelemen (allotropia) 2024-09-05 14:57:18 UTC
(In reply to BogdanB from comment #5)
> I exported now the File.odt with 24.8 and open the PDF with Evince and the
> checkboxes are visibile, everything seems fine now.
> 
> Version: 24.8.0.3 (X86_64) / LibreOffice Community
> Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
> CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
> Locale: ro-RO (ro_RO.UTF-8); UI: en-US
> Calc: threaded
> 
> Evince 46.0

I can't reproduce the fix. The squares are appearing in Evince, but the checkmarks not. Firefox on the other hand shows the checkmarks as well.
Comment 7 Gabor Kelemen (allotropia) 2024-09-05 15:09:30 UTC
Created attachment 196259 [details]
How the exported PDF looks in Firefox 130 (from Ubuntu) and Evince 46 (from Fedora 40 running in distrobox)
Comment 8 Gabor Kelemen (allotropia) 2024-09-05 15:10:11 UTC
Created attachment 196260 [details]
The example file unpacked - for convenience
Comment 9 Gabor Kelemen (allotropia) 2024-09-05 15:11:35 UTC
Created attachment 196261 [details]
The file exported to PDF with Forms enabled

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 10363c80eb3fd0637d91714fe977de77b43d3aa3
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 10 BogdanB 2024-09-05 18:04:55 UTC
(In reply to BogdanB from comment #5)
> I exported now the File.odt with 24.8 and open the PDF with Evince and the
> checkboxes are visibile, everything seems fine now.
> 
> Version: 24.8.0.3 (X86_64) / LibreOffice Community
> Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
> CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
> Locale: ro-RO (ro_RO.UTF-8); UI: en-US
> Calc: threaded
> 
> Evince 46.0

Indeed, my mistake, the checkboxes are there, but the status is wrong: "x" instead of "Ok".