| Summary: | FILEOPEN DOCX Specific document is rendered more tightly as in Word | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Gabor Kelemen (allotropia) <kelemeng> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | UNCONFIRMED --- | ||
| Severity: | normal | CC: | aron.budea, jluth, michael.stahl |
| Priority: | medium | Keywords: | bibisected, bisected, regression |
| Version: | Inherited From OOo | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=153964 | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 112839 | ||
| Attachments: |
Example file from Word 2016
Screenshot of the example file in Word 2016 and Writer master shorter-document-min1_mso2010.png: page2 text definitely starts higher than page1 Diffpdf view of the Word10-saved PDF and LO saved PDF |
||
|
Description
Gabor Kelemen (allotropia)
2024-01-31 21:26:40 UTC
Created attachment 192307 [details]
Screenshot of the example file in Word 2016 and Writer master
Created attachment 192311 [details]
shorter-document-min1_mso2010.png: page2 text definitely starts higher than page1
This is a compat14 document - i.e. designed for 2010.
I think the cause of the problem is not my patch.
The text on page 2 is supposed to start higher than the text on page 1 (which has a 6pt/.21cm top margin). The 12pt/.42cm stated top margin on page 2 is ignored by Word (well, actually applied to the paragraph start at the end of page 1) and also ignored by LO with my patch.
In Word 2010, if I set the top margin to something huge (like 70pt) then nothing changes - so it is acting as if the top margin is zero (which is what my patch did).
I don't have Calibri font on my linux/LO box, so font substitution will be having an effect for me. I assume Gabor has that font since he ran the test on Windows.
Please do a PDF comparison of the TOP of the second page. I expect the tops in LO and MSO to match up - hopefully better after my patch than before my patch. In that case, the root cause is just some difference in the cumulative spacing that prevents the last line from fitting in MS Word.
Created attachment 192615 [details] Diffpdf view of the Word10-saved PDF and LO saved PDF Seems like there is less spacing between the bulleted paragraphs in Writer than in Word. The bibisected change has removed the upper spacing from the first paragraph after the page break, this looks like in Word 2010+. Manually removing this 0.42 cm before spacing makes the document 2 pages back until 5.3, but in 5.2 was still rendered as 3 pages under both Linux and Windows. Bibisected under linux-5.3 to: https://cgit.freedesktop.org/libreoffice/core/commit/?id=34d7602954d4483b3bc9db700e7df2c15348947a author Khaled Hosny <khaledhosny@eglug.org> 2016-11-09 15:22:43 +0200 committer Khaled Hosny <khaledhosny@eglug.org> 2016-11-22 15:32:11 +0000 commit 34d7602954d4483b3bc9db700e7df2c15348947a (patch) tdf#55469 Consistent line spacing across platforms i can't reproduce the bibisect result in comment #3 - i load the document, go to the top "Heading 1" paragraph on page 2, set the "Above Paragraph Spacing" to 0, and get 2 pages, before and at that commit. this is bibisect-linux-64-5.3 on Linux with Calibri ttf in .fonts - dont see other font being used? ... i can't find an older version where this was shown as 3 pages libreoffice-4.0.6.2 even shows it as 2 pages right after loading. setting version to OOo, Gabor please double check? |