Skip to content

Support page-break-before: always to avoid blank pages caused by page-break-after #175

@ghost

Description

The html-to-docx converter currently supports: page-break-after: always

but ignores: page-break-before: always

Microsoft Word itself supports both properties, and this limitation makes accurate pagination difficult when converting HTML to DOCX.

Problem

When using page-break-after: always as a workaround for missing page-break-before support, blank pages can appear in the generated Word document.

This typically happens when a break is applied after the last element of a page. As a result, Word renders an unintended empty page.

Supporting page-break-before would Avoid unintended blank pages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions