Skip to content

DOCX: paragraphs without pStyle skip the default paragraph style #288

Description

@developer0hye

Problem

A DOCX paragraph with no explicit w:pStyle should inherit the document's default paragraph style (normally the style marked w:default="1"). office2pdf instead falls back directly to its synthetic document-default text style, whose paragraph properties are empty.

In the public footer regression fixture, the default Normal style supplies paragraph spacing and line spacing. Current main drops those values, visibly compressing the page body upward even though the footer-specific fix itself is correct.

Expected behavior

Apply the full cascade in order: document defaults → default paragraph style → explicit paragraph style → direct paragraph/run formatting. Preserve the default style's spacing, line spacing, size, and other paragraph properties for paragraphs without w:pStyle.

Related: #195, #204, #251

Side-by-side (GT left, office2pdf right)

GT vs current output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions