DOCX Section Breaks & Mixed Layouts
A standard DOCX file has a single section property (<w:sectPr>) at the end of the document. However, when a document mixes portrait and landscape pages, Word inserts continuous or next-page section breaks directly into the paragraph definitions.
These files specifically test your parser's ability to detect inline section breaks and adapt page layouts dynamically mid-document, a feature that many basic DOCX-to-HTML libraries fail to implement properly.
Mixed orientation
A multi-page document that alternates between Portrait and Landscape layouts using continuous section breaks. Essential for testing layout engine adaptability.
Frequently Asked Questions
Use Cases
- Testing DOCX-to-PDF converters to ensure pages switch orientations without breaking the output stream.
- Validating pagination logic that resets page numbers based on section breaks.
- Ensuring web-viewers don't stretch or distort landscape tables when rendering adjacent portrait pages.