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)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 163663 (view as bug list)
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2019-02-01 20:06 UTC by qksws3q
Modified: 2024-10-29 07:38 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


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

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
Description:
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:
Version: 6.1.4.2
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
Repro
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
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 Comment hidden (obsolete)
Comment 10 Mike Kaganski 2023-10-31 16:00:46 UTC
Since PDF export now can handle these parameters in API ( commit 24d4540088f7b45716e87db3fcf0817518d61fe1 ), the next task is to add respective controls to the PDF export dialog (replacing the controls that are unrelated to Math in the Structure group) - see TODO in the commit message; and that implies ensuring persistence.
Comment 11 Regina Henschel 2024-10-29 07:38:12 UTC
*** Bug 163663 has been marked as a duplicate of this bug. ***