Bug 160628 - PDF and PRINTING checkbox - form fields are not or wrong in an exported pdf or printout
Summary: PDF and PRINTING checkbox - form fields are not or wrong in an exported pdf o...
Status: RESOLVED DUPLICATE of bug 159802
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-11 16:28 UTC by WilfriedH
Modified: 2024-04-13 13:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test files to reproduce the bug (11.51 KB, application/vnd.oasis.opendocument.calc)
2024-04-11 16:28 UTC, WilfriedH
Details
modified test file to reproduce the bug (12.28 KB, application/vnd.oasis.opendocument.calc)
2024-04-11 16:29 UTC, WilfriedH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description WilfriedH 2024-04-11 16:28:37 UTC
Created attachment 193626 [details]
test files to reproduce the bug

under some conditions, checkbox - form fields are in wrong positions or not at all in an exported or printed pdf document. 

Way to reproduce:
Create a new empty calc document. 
Choose forms design mode, create checkboxes, modify them to have no label, exit forms design mode, check some of them.
Export to pdf or print using windows' pdf printer. 
(formfields-test1.*)
Result: only one checkbox is in the pdf, and shifted from its correct position.
Modify the spreadsheet (formfields-test2.*)
Export to pdf or print using windows' pdf printer. 
Result: no checkbox is in the pdf.
Comment 1 WilfriedH 2024-04-11 16:29:18 UTC
Created attachment 193627 [details]
modified test file to reproduce the bug
Comment 2 Armondo Lopez 2024-04-11 17:13:48 UTC
I was unable to reproduce the same behavior in 

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

or 

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a2265e8faa099d9652efd12392c2877c2df1d1eb
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 WilfriedH 2024-04-11 18:24:06 UTC
This was a very helpful comment.
We have two PCs, each one running the same version of LibreOffice (24.2.1.2). The one showing the problem is a new one running Windows 11.
On the other one running Windows 10, the exported pdfs are just fine!
Comment 4 WilfriedH 2024-04-11 18:40:48 UTC
I made some more tests.
By exporting the spreadsheet to pdf on Win10, the resulting pdf is OK.
By exporting the same spreadsheet to pdf on Win11, the resulting pdf is wrong.
On both systems, the same version of LibreOffice is running, and the same version of the pdf viewer. The pdf exported on Win11 displays wrong when viewed on both systems, and the pdf exported on Win10 displays correct when viewed on both systems. 
Hence it is not a matter of the pdf viewer.
Comment 5 m_a_riosv 2024-04-11 20:30:34 UTC
Please verify if there are the same options for pdf export on both systems.
Comment 6 WilfriedH 2024-04-12 08:09:04 UTC
- yes, same options for pdf export on both systems.
- in the pdf created by direct export from LibreOffice, there is only one checkbox, shifted up.
- printout from LibreOffice to a physical printer (HP Officejet Pro 8100) looks identical to the printout of Windows Print to PDF and Windows print to OneNote (only one checkbox, but shifted down a little bit).
- in a print to pdf via PDFXChange Lite there is no checkbox at all.
Comment 7 WilfriedH 2024-04-12 13:11:11 UTC
To make sure that the problem is only in LibreOffice, I saved the document as xlsx and opened it in Excel (2021) and also in Planmaker (2024) on the same PC. I first had to set the background of the checkboxes to no color. Printing then is correct from Excel as well as from Planmaker.
Comment 8 Robert Großkopf 2024-04-12 18:26:32 UTC
Isn't this one a duplicate of https://bugs.documentfoundation.org/show_bug.cgi?id=159802 ?

Please try with LO 24.2.2.2
Comment 9 WilfriedH 2024-04-13 06:07:50 UTC
"Isn't this one a duplicate of https://bugs.documentfoundation.org/show_bug.cgi?id=159802 ?"
Probably. Sorry I did not find that bug report before I submitted mine. I searched for "formfield" and "checkbox", not for "form objects"

"Please try with LO 24.2.2.2"
In 24.2.2.2 the problem is gone, thank you very much!
Comment 10 ady 2024-04-13 13:21:14 UTC

*** This bug has been marked as a duplicate of bug 159802 ***