Bug 85513 - PDF export results in wrong checkboxes (checkmark changes design)
Summary: PDF export results in wrong checkboxes (checkmark changes design)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: Other macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2014-10-27 12:02 UTC by retired
Modified: 2021-07-04 11:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
test file and exported PDFs (33.82 KB, application/zip)
2014-10-27 12:02 UTC, retired
Details
print showing file, result with "Create PDF form" checked in export dialog, and result without (84.99 KB, image/png)
2017-08-11 13:12 UTC, Cor Nouws
Details
test file output 2021-07-04 LO 7.3 main build export to PDF in LO (21.39 KB, application/pdf)
2021-07-04 11:43 UTC, steve
Details
test file output 2021-07-04 LO 7.3 main build using macOS print dialog save to PDF (7.63 KB, application/pdf)
2021-07-04 11:45 UTC, steve
Details

Note You need to log in before you can comment on or make changes to this bug.
Description retired 2014-10-27 12:02:39 UTC
Created attachment 108507 [details]
test file and exported PDFs

Problem description: Test file has two checkboxes. 1. active 2. not active. When the test odt file is exported to PDF, the checkmark changes in design.

Steps to reproduce:
1. open test file
2. use LO PDF export button
3. open PDF 

Current behavior:
    1. LO PDF export: active checkbox changes from a checkmark to an x (using a font that looks a bit like handwritten)
    2. OSX print dialogue PDF export: active checkbox changes from a checkmark to an x (looking like a normal x, so a different font than LO pdf export applies is being used)

Expected behavior: a checkmark should stay a checkmark and no fonts should be changed to display an active checkbox.

This is on OSX 10.10, LO 4.3.3.1.
Comment 1 Alex Thurgood 2014-10-27 16:52:13 UTC
Confirming on osx 10.10 with master 
Version: 4.4.0.0.alpha1+
Build ID: 6ba8b7f5eacac969e4781d63718083a05491b1bc
TinderBox: MacOSX-10.10@61, Branch:master, Time: 2014-10-24_01:13:49

What I do notice however is that the tick box in the pdf has both a tick and an x, which is why it looks weird. You can see this if you zoom in and let the mouse pointer remain on it when mouse button is pressed.
Comment 2 Cor Nouws 2017-08-11 13:12:46 UTC
Created attachment 135469 [details]
print showing file, result with "Create PDF form" checked in export dialog, and result without

my results from Version: 6.0.0.0.alpha0+
Build ID: 368b583b992f2e9cad46c2362c9529a07c36d7a9
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-08-10_02:55:46
Locale: nl-NL (nl_NL.UTF-8); Calc: group

Checking "Create PDF Form" on export produces a proper result.
Not doing that, shows garbage
Comment 3 QA Administrators 2018-08-12 02:35:21 UTC Comment hidden (obsolete)
Comment 4 himajin100000 2018-08-12 21:55:00 UTC
1. Open the attached odt document
2. Remove "Checkbox active" and "Checkbox inactive" strings.
3. From Main menu, Follow Forms->Design Mode
4. Right-click first checkbox and choose "Control" context menu
5. In the "General" Tab, you will see Label property set to Makierfeld
6. close the dialog.
7. Right-click second checkbox and choose "Control" context menu
8. In the "General" Tab, you will see Label property set to "Makierfeld 2"
9. close the dialog.
10. Export this file As PDF with "Create PDF Form" Option turned off
11. See what is written next to the checkboxes in the resulting PDF
Comment 5 himajin100000 2018-08-13 21:04:34 UTC
regarding x sign in a rectangle if we export a control to PDF, I believe this is intentionally made to be drawn in a simple way.

https://opengrok.libreoffice.org/xref/core/vcl/source/control/button.cxx?r=a43b79f6#3366

https://opengrok.libreoffice.org/xref/core/toolkit/source/awt/vclxwindow.cxx?r=82828c6c#2324

but surprisingly (at least to me), no rectangle as well as check mark was drawn in pdf even if I removed the '|| ( pPDFExport != nullptr )' part.

https://opengrok.libreoffice.org/xref/core/toolkit/source/awt/vclxwindow.cxx?r=82828c6c#2321
Comment 6 QA Administrators 2021-07-03 04:03:48 UTC Comment hidden (obsolete)
Comment 7 steve 2021-07-04 11:43:04 UTC
Created attachment 173340 [details]
test file output 2021-07-04 LO 7.3 main build export to PDF in LO
Comment 8 steve 2021-07-04 11:45:20 UTC
Created attachment 173341 [details]
test file output 2021-07-04 LO 7.3 main build using macOS print dialog save to PDF
Comment 9 steve 2021-07-04 11:45:43 UTC
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 9c15dea0b2192d231b65175291a7655122c2e24c
CPU threads: 8; OS: Mac OS X 10.16 (11.4 actually); UI render: default; VCL: osx
Locale: en-US (en_DE.UTF-8); UI: en-US
Calc: threaded

Output PDF now has a checkmark as expected when using LO export to PDF (see attached PDF output file).

It remains a "x" when using macOS print dialog > Save to PDF however, which I assume is expected behavior.

Closing as WORKSFORME.