Description: Document created in writer with an extended page length and saved as .docx file. On reopening in Writer is displayed as multiple blank lines. The page length has been changed to be a few cm long and the display is showing multiple pages. This happens if the page length exceeds the limit for .docx files in word (approx 55cm). If you change the page length back to a longer length it continues to be displayed correctly. When the file with the extended page length is opened directly in Word it changes the page length to the default maximum, when opened in google docs it is displayed as the extended page length. Steps to Reproduce: 1.create file larger than 55cm long in Writer 2.save as .docx, close file 3.reopen in Writer Actual Results: Display is unreadable. Document is displayed as multiple pages each a few cm long. Expected Results: Display is readable, page length is as saved (or changed to default maximum length) Reproducible: Always User Profile Reset: No Additional Info: Version: 6.4.7.2 Build ID: 1:6.4.7-0ubuntu0.20.04.1 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB Calc: threaded (NB same issue found using Windows 10)
Created attachment 173612 [details] Test file
Created attachment 173613 [details] Screenshot of correct display
Created attachment 173614 [details] Screenshot of incorrect layout
Had posted this as a question here. https://ask.libreoffice.org/en/question/317895/mail-merge-doc-saved-as-docx-not-displayed-correctly-in-lo-writer/ It was a mail merge document but I have since discovered it is true for other documents.
Problem is obvious, LO saved DOCX opens in MSO as 4 pages, while it's counting in LO without visible content, like short pages. Correct was to report filesave problem for DOC/X is to first save as ODT (after step 1.) and attach it. Please do. That will help test it properly.
While for filesave part is needed ODT, fileopen was visible 8 pages with 5.2 oldest, wrong counting with 5.2 master. commit f297713d36cc7f3750bae027a9761953a5c0bb45 Date: Tue Dec 19 16:29:38 2017 +0100 source c97f1aff7077959e65852f65e3217e5dffd262ce previous 93725af2265d1171bcad27d69db11934b2ae6de5 author Justin Luth <justin_luth@sil.org> 2016-09-09 23:52:08 +0300 tdf#86926 writerfilter allow fallback if exceptions
Created attachment 173631 [details] odt example text
Created attachment 173632 [details] screenshot of saved as .docx in word
Created attachment 173633 [details] screenshot of .odt in word
Sorry don't fully understand. I've uploaded a new example file as .odt (never saved as .docx) and also screenshots taken opening the the .odt and the .docx file opened in Word. This .docx file opens as multiple pages in Writer. (these are done when booted into windows 10 not linux)
With the page height of 60 cm becoming 4.1 cm after reload, I think this is a duplicate report of bug 142693 which show the same result. *** This bug has been marked as a duplicate of bug 142693 ***