Bug 156727 - Document layout changed in PDF export: new soft page break
Summary: Document layout changed in PDF export: new soft page break
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All All
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:24.2.0 target:7.6.1
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export Writer-Page-Break
  Show dependency treegraph
 
Reported: 2023-08-11 00:42 UTC by Gabor Kelemen (allotropia)
Modified: 2023-08-22 18:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the example file saved with 7.4 and 24.2 (134.14 KB, image/png)
2023-08-11 00:42 UTC, Gabor Kelemen (allotropia)
Details
Bad export PDF from fresh linux-bibisect 24.2 (546.97 KB, application/pdf)
2023-08-11 00:54 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-08-11 00:42:34 UTC
Created attachment 188923 [details]
Screenshot of the example file saved with 7.4 and 24.2

In command line PDF export mode attachment 153918 [details] layout changes: on page 5 an unexpected page break appears between the first and second level of numbered paragraphs, making the total number of pages 22 instead of 21.

1. Download attachment 69599 [details]
2. in CLI save as PDF: --convert-to pdf
-> Layout changes, page 5 is mostly empty and total number of pages is 22. Works fine from UI.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0d571ff8079f858a5650bf6cbb38296d22cc58e1
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded

Started in 7.5 with:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=425a252c3cc5e5a79a533965026dd4af6b8df739

author	Michael Stahl <michael.stahl@allotropia.de>	2023-05-12 17:45:45 +0200
committer	Thorsten Behrens <thorsten.behrens@allotropia.de>	2023-06-27 11:28:49 +0200
commit 425a252c3cc5e5a79a533965026dd4af6b8df739 (patch)
tdf#155324 sw: layout: try not to MoveFwd onto a page created by page break
Comment 1 Gabor Kelemen (allotropia) 2023-08-11 00:54:44 UTC
Created attachment 188924 [details]
Bad export PDF from fresh linux-bibisect 24.2
Comment 2 Michael Stahl (allotropia) 2023-08-11 11:16:42 UTC
the bugdoc in the description is copypasta, the correct one is fdo56431-6.odt
Comment 3 Commit Notification 2023-08-17 09:00:15 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/802d748d9ce5541dc54a0369910a442afeeaa43e

tdf#156727 sw: layout: allow MoveBwd if previous has keep-with-next

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Michael Stahl (allotropia) 2023-08-17 09:01:21 UTC
fixed on master
Comment 5 Commit Notification 2023-08-22 18:59:23 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/9b6a4fcc010bdb740a5b3581a47327f45ee05718

tdf#156727 sw: layout: allow MoveBwd if previous has keep-with-next

It will be available in 7.6.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.