[Libreoffice-bugs] [Bug 143740] New: Style for oversized Pages not preserved in .docx files - leading to improper display or inability to load page

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 5 06:36:29 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143740

            Bug ID: 143740
           Summary: Style for oversized Pages not preserved in .docx files
                    - leading to improper display or inability to load
                    page
           Product: LibreOffice
           Version: 7.0.6.2 release
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: justanotherprogrammer at hotmail.com

Description:
I created a very long document, which I wanted to export to PDF without page
breaks.  I defined the document as 8.5" wide by 39.0" high.  The document
contained a combination of text (font sizes ranging from 12pt. to 20 pt.) and
pictures.  The document looked fine, and exported to PDF with no issues.  I
saved the document in .docx format.  The next time I opened the document, it
looked unrecognizable.  I realized it was because the Page Style had not been
preserved.  It was showing a size of 8.5" x 0.62".  When I changed the height
back to 39.0" the document showed properly.  So, the document content had been
preserved, but not the page style (height).  Because the document cannot be
sanitized, I decided to create a fresh document to submit with the bug report. 
Starting with document height of 39", I set font size to largest possible, and
started typing jibberish to fill the page.  I saved the document in .docx form.
 When I tried to open the document, it would not open (Writer hung while trying
to open document).  I had to kill the process.  This is specific to the .docx
format.  When the 39" long document was saved as .odt, it opened up with no
issue.

Steps to Reproduce:
1. Create a long document (change page style to 8.5" x 39.0") filling entire
length of document with text and/or jpg images.
2. Save document in .docx format
3. Attempt to re-open document after saving.

Actual Results:
Two possible outcomes.  

1.  The document opens, with the page style not preserved (height is compressed
so document does not render properly - however, if you change the page style
height back to 39", the document renders correctly.

2.  The document does not open at all.  Write component must be aborted from
task bar or task manager.

Expected Results:
The documents should have opened properly, with the page style preserved.


Reproducible: Always


User Profile Reset: No



Additional Info:
I used LibreOffice 7.0.6.2 for this task.  Saving the document in .odt format
instead of .docx worked exactly as expected, so it is a .docx issue.

There is no need to attach a document.  I could attach the .odt version of the
document that loaded.  If you load that document and save it as a .docx, that
will result in the failure (unable to load document) in scenario #2 of my
Actual Results.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210805/df8816bf/attachment.htm>


More information about the Libreoffice-bugs mailing list