Bug 98838 - page breaks added in 23-pages DOCX so LO opens 27 pages
Summary: page breaks added in 23-pages DOCX so LO opens 27 pages
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
Keywords: filter:docx
Depends on:
Blocks: DOCX
  Show dependency treegraph
Reported: 2016-03-23 13:02 UTC by Jeffry Engert
Modified: 2022-06-22 19:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:
Regression By:

blank pages added to column (158.42 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-03-23 13:02 UTC, Jeffry Engert

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffry Engert 2016-03-23 13:02:48 UTC
Created attachment 123791 [details]
blank pages added to column

Page 3, one of the later columns I get a lot of blank pages.  They do not appear in MS Word or Google docs.  

I have a problem opening a MS word file with most of the text using eight column format, it creates blank pages and does not fill all the columns. Both Open Office and yours LibreOffice displays the same problem with multiple column format. In the following file it is supposedly to have only 23 pages not the 100+ that the programs are created when the “doc” or “docx” files are opened which was created from Microsoft Word 97-2003. The problem seems to be related to the column format.

Number of columns and pages could be the problem,

Comment 1 raal 2016-03-23 20:26:13 UTC
LO (x64) : 75 pages
LO (x64): 31 pages
word: 23 pages
Comment 2 Telesto 2016-12-02 10:41:53 UTC
25 pages with:
Build ID: 4130c8def811d1dcc87eacaa8ae48ba02738a790
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-11-29_01:03:18
Locale: nl-NL (nl_NL); Calc: CL
Comment 3 QA Administrators 2017-12-10 16:42:41 UTC Comment hidden (obsolete)
Comment 4 Jeffry Engert 2017-12-12 21:38:28 UTC Comment hidden (obsolete)
Comment 5 OfficeUser 2018-05-15 21:20:55 UTC
This bug is still present in:
Build-ID: 8f48d515416608e3a835360314dac7e47fd0b821
CPU-Threads: 8; BS: Linux 4.4; UI-Render: Standard; VCL: gtk2; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group

I found this report because I have received another docx-file which shows blank pages at the end.

Also interesting is the fact that a similar doc-related (not docx) issue has already been fixed (Bug 95531).
Comment 6 Timur 2018-05-16 09:56:37 UTC
Multiple issues here, test with 6.1+:
- blank pages added in the middle of a column, for no apparent reason (this bug)
- LO first reads 203 pages and than later decreases(guess the same)
- page 2 in MSO "Note that .." text in LO has wrong spacing and line spacing (no spacing and single in MSO) so makes 2 pages out of 1 (probably another bug)
- page 20 in MSO after "Next I checked.." looks like LO has additional paragraph mark, so makes an additional page.
Comment 7 QA Administrators 2019-05-17 03:09:46 UTC Comment hidden (obsolete)
Comment 8 Timur 2019-05-17 12:39:39 UTC Comment hidden (obsolete)
Comment 9 Timur 2019-12-10 17:27:47 UTC
At first LO 6.5+ (like OO 3.3) shows 204 pages and then recounts to 151 (worse than before).
This is 2007 DOCX but same if resaved in MSO.
Comment 10 NISZ LibreOffice Team 2020-11-25 13:27:52 UTC
151 pages in:

Version: (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

but only 27 in:

Version: (x64)
Build ID: cb084f475db33a2cfc62bc9c8de37b8c3c87b3c7
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL


Michael Stahl <Michael.Stahl@cib.de> Fri Nov 13 20:52:28 2020 +0100 
Michael Stahl <michael.stahl@cib.de> Mon Nov 16 16:51:19 2020 +0100 

tdf#134298 sw: layout: remove left-over page frame without content

The 4 page difference left is probably because of problems noted in comment #6. 
Let's keep this still open as a reminder that those need to be fixed too.
Comment 11 Timur 2021-02-23 13:37:51 UTC
Single remaining issue in this bug are 3 page breaks that LO opens which I don't see in original MSO DOCX after pages 2, 19, 20.

(if that would be resolved, there would remain a small difference which is outside of this bug' scope).
Comment 12 Justin L 2022-06-22 19:41:24 UTC
This document still takes forever to load and finalize the layout.

(In reply to Timur from comment #11)
> Single remaining issue in this bug are 3 page breaks that LO opens which I
> don't see in original MSO DOCX after pages 2, 19, 20.
I see a w:br Page specified in document.xml at page 2 and a few other places.

I also see a few continuous section breaks (sectpr) which always give lots of trouble b/c LO doesn't have an equivalent concept.  Plenty of bug reports related to that. I suggest we close this now as FIXED.