Bug 123117 - Exporting PDF from LibreOffice Math doesn't follow Math-Settings-Print Options and that can't be changed (workaround: Print and change in dialog)
Summary: Exporting PDF from LibreOffice Math doesn't follow Math-Settings-Print Option...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
Reported: 2019-02-01 20:06 UTC by qksws3q
Modified: 2022-08-25 03:43 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:

Sample file (5.83 KB, application/vnd.oasis.opendocument.formula)
2019-02-03 21:40 UTC, Telesto
PDF Export (29.47 KB, application/pdf)
2019-02-06 16:37 UTC, Telesto
Layout when printed (PDF print) (12.60 KB, application/pdf)
2019-02-06 16:38 UTC, Telesto

Note You need to log in before you can comment on or make changes to this bug.
Description qksws3q 2019-02-01 20:06:42 UTC
It outputs a PDF with strange contents, not as it was supposed to be.

Steps to Reproduce:
1.Open LibreOffice Math
2.Write this: https://pastebin.com/Qe4eX3CR
3.Hit the button 'Export as PDF' at the top bar (next to the printer and paper airplane icon).
4.See the result PDF.

Actual Results:
The PDF is strange. It does not seem like it is correct.

Expected Results:
What I have seen in LibreOffice Math screen.

Reproducible: Always

User Profile Reset: No

Additional Info:
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 2; OS: Linux 3.16; UI render: GL; VCL: gtk2; 
Locale: en-US (en_US.utf8); Calc: group threaded
Comment 1 Jean-Baptiste Faure 2019-02-03 21:34:10 UTC
Reproducible: LO Math exports both the math code and the result.
I'm not sure it's a bug or if it ever worked as you expected.

Workaround: insert the formula in Writer, then export as PDF from Writer.

Best regards. JBF
Comment 2 Telesto 2019-02-03 21:40:06 UTC
Created attachment 148878 [details]
Sample file
Comment 3 Telesto 2019-02-03 21:44:12 UTC
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 4 Heiko Tietze 2019-02-06 15:42:22 UTC
When I open the file on macOS both Vanilla as well as 6.3 crashes on export. 

But what I wonder is what aspect is to discuss for UX?
Comment 5 Telesto 2019-02-06 16:37:56 UTC
Created attachment 148961 [details]
PDF Export
Comment 6 Telesto 2019-02-06 16:38:44 UTC
Created attachment 148962 [details]
Layout when printed (PDF print)
Comment 7 Heiko Tietze 2019-04-05 06:54:44 UTC
Tools > Options > Math > Settings > Print Options controls if printing also does the formula text. Let's stick PDF to this option and make it working similar (obviously PDF export and printing are seen as of the same kind). 
At least we should not export the formula text, hard to believe it's needed by anyone.
Comment 8 Timur 2019-10-04 10:58:52 UTC
Change in "Tools > Options > Math > Settings > Print Options" is not remembered. 
Export to PDF behaves like options are checked. 
There was a change, previously they were remembered but without effect. Now, some are remembered some not, also without effect. 
Same options can be changed in Print dialog Math tab and it works. 
(I reproduced wrong output in Print Preview. 
But the next time I didn't. So workaround is to use Print to PDF.)

Further bug here is: when Original size is exported (and formula text is large and is exported), it's cut instead of exported to two pages.

Let's see if there's some fix here, or more. It's easy to open new bugs if not resolved.
Comment 9 QA Administrators 2022-08-25 03:43:27 UTC
Dear qksws3q,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team