https://bugs.documentfoundation.org/show_bug.cgi?id=171025
Bug ID: 171025
Summary: FILESAVE ODT->DOCX: pageAfter break is lost with
alternating page styles
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: filter:docx
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Blocks: 108771
Created attachment 205788
--> https://bugs.documentfoundation.org/attachment.cgi?id=205788&action=edit
pageAfter.odt: minimal example - page break lost when exporting to DOCX
While working on pageAfter exporting issues, I noticed that FormatBreak of a
pageAfter comes too late to actually create the sectPr.
Note that Microsoft doesn't have a pageAfter break - it needs to be mapped to a
pageBefore break.
If there are no alternating page styles, then it works - it just writes a
m_pSerializer->singleElementNS(XML_w, XML_br, FSNS(XML_w, XML_type), "page")
but when it OutputFollowPageDesc, that just resets m_pSectionInfo which is set
too late and simply cleared with the next StartParagraph.
Steps to reproduce:
1.) open pageAfter.odt in LO and save as DOCX format
2.) reload the docx file.
Notice that all the content is now on the first (and only) page.
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=108771
[Bug 108771] [META] DOCX (OOXML) page-related issues
--
You are receiving this mail because:
You are the assignee for the bug.