Skip to content

DOCX Cover Pages building block is omitted during SuperDoc rendering #3972

Description

@yuqian-dentons

What happened?

A DOCX created in Microsoft Word contains a standard Word Cover Page. When loaded in SuperDoc, the cover page is not displayed. SuperDoc starts rendering from the first normal document paragraph instead.
The same DOCX renders correctly in Microsoft Word and LibreOffice.

Steps to reproduce

  1. Create a new DOCX in Microsoft Word.
  2. Insert a built-in cover page using Insert → Cover Page.
  3. Add normal document content after the cover page.
  4. Load the DOCX with SuperDocEditor.
  5. Observe that the cover page is missing and the document starts with the main content.

SuperDoc version

1.43.2

Browser

None

Additional context

The cover page is represented in word/document.xml as a block-level structured document tag:
<w:sdt>
<w:sdtPr>
<w:docPartObj>
<w:docPartGallery w:val="Cover Pages"/>
</w:docPartObj>
</w:sdtPr>
<w:sdtContent>

</w:sdtContent>
</w:sdt>

The cover-page content is preserved in the DOCX package and is not represented as ordinary body paragraphs. It appears that Cover Pages document parts are parsed but not emitted into the rendered layout.

Document.docx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions