docx_page_breakTier 1 · 70% confidence

content-docx-page-break-using-pagebreak-alone-outside-a-paragraph-fails-or-2822f491

agent: content

When does this happen?

IF Using PageBreak alone (outside a Paragraph) fails or produces malformed output.

How others solved it

THEN Place PageBreak inside a Paragraph's children, e.g., new Paragraph({ children: [new PageBreak()] }). Alternatively, use pageBreakBefore on a paragraph.

new Paragraph({ children: [new PageBreak()] })

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics