Bug 156745 - CLI PDF export: document is 2 pages instead of 7
Summary: CLI PDF export: document is 2 pages instead of 7
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 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: redlinehide-regressions
  Show dependency treegraph
 
Reported: 2023-08-11 17:27 UTC by Gabor Kelemen (allotropia)
Modified: 2023-08-21 10:07 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Bad export PDF from fresh linux-bibisect 24.2 (112.38 KB, application/pdf)
2023-08-11 17:27 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 17:27:39 UTC
Created attachment 188939 [details]
Bad export PDF from fresh linux-bibisect 24.2

This is a followup to bug 156724

In command line PDF export mode attachment 69599 [details] layout has changed. The document is 7 pages in the editor, but only the first two are exported to PDF in CLI export mode.

1. Download attachment 69599 [details]
2. in CLI save as PDF: --convert-to pdf
-> resulting document is only 2 pages long instead of 7

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

This started in 6.2 with:

https://git.libreoffice.org/core/+/7e8b4756d95057f069467b34e7849f9354856578

author	Michael Stahl <Michael.Stahl@cib.de>	Mon Sep 17 11:26:01 2018 +0200
committer	Michael Stahl <Michael.Stahl@cib.de>	Wed Sep 19 10:18:33 2018 +0200

sw_redlinehide_2: disable layout-cache for now

This also made the document appear only as first 2 pages in the editor. 
That issue was resolved later still in 6.2 with:

https://git.libreoffice.org/core/+/232b467083dd3b55f261bebe084e696bee200ec9

author	Michael Stahl <Michael.Stahl@cib.de>	Wed May 08 16:23:25 2019 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Fri May 10 13:25:52 2019 +0200

tdf#124675 sw: fix crash when moving SwTextFrame in table to prev page
Comment 1 Commit Notification 2023-08-14 19:15:59 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/610c6f02b11b4b4c555a78b0feb2a1eb35159e39

tdf#156724 tdf#156722 tdf#156745 sw: layout: partially remove IsPaintLocked()

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 2 Michael Stahl (allotropia) 2023-08-15 08:37:15 UTC
not sure if this is a duplicate of 156724 or a different problem; before 156724 it also just visually looks like the split table failed but on page 2, not on page 1
Comment 3 Commit Notification 2023-08-21 10:07:06 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/cff929fe5c5bc24be81218ba2ce3d9304d09bf68

tdf#156724 tdf#156722 tdf#156745 sw: layout: partially remove IsPaintLocked()

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.