Bug 106073 - FILEOPEN: DOCX has a different page count in LibreOffice
Summary: FILEOPEN: DOCX has a different page count in LibreOffice
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectNotNeeded, filter:docx, regression
Depends on:
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2017-02-18 08:08 UTC by Mike Kaganski
Modified: 2019-06-04 22:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
130-page document from https://ask.libreoffice.org/en/question/87945/docx-has-a-different-page-count-in-libreoffice/ (28.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-02-18 08:08 UTC, Mike Kaganski
Details
without tabulation culprit (28.27 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-02-18 08:52 UTC, Jacques Guilleron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2017-02-18 08:08:11 UTC
Created attachment 131310 [details]
130-page document from https://ask.libreoffice.org/en/question/87945/docx-has-a-different-page-count-in-libreoffice/

The attached file has 130 pages in Word. In Writer, it has 129 pages.

Starting from page 15, there is a shift in paragraph layout, where some paragraphs seem to take less space than should (so they start to move to previous page). On page 125, two images are placed on same page.

Tested with Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89)

and with Version: 5.4.0.0.alpha0+
Build ID: 0866178f503152f468175865ebe7d971f083baa7
CPU Threads: 4; OS Version: Windows 6.19; UI Render: GL; 
Locale: ru-RU (ru_RU); Calc: CL

It was OK with Version 3.6.0.4 (Build ID: 932b512) -> regression.
Comment 1 Jacques Guilleron 2017-02-18 08:52:09 UTC
Created attachment 131311 [details]
without tabulation culprit

I reproduce with 
LO 5.4.0.0.alpha0+ Build ID: 9077f1f110a35ed223fb47e9eaa329dd19528e38
CPU Threads: 2; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-02-16_23:34:39
Locale: fr-FR (fr_FR); Calc: CL

The culprit is a tabulation at  page 125, 126.
Without this tabulation, the page number become correct.
Comment 2 Timur 2017-02-21 19:47:49 UTC
(In reply to Jacques Guilleron from comment #1)
> The culprit is a tabulation at  page 125, 126.
> Without this tabulation, the page number become correct.
Can you please create a minimal test case?
Comment 3 QA Administrators 2018-11-10 03:52:21 UTC Comment hidden (obsolete)
Comment 4 Aron Budea 2019-06-04 22:13:57 UTC
Checked in Ubuntu 18.04, and in LO 6.1.0.3 it has 129 pages, but in 6.2.0.3 it has 130. Closing as WFM.