Skip to content

DOCX: preserve numbering-level list indentation #334

Description

@developer0hye

Summary

DOCX list markers and text ignore the indentation defined on the numbering level. The PR #187 fixture specifies w:ind w:left="720" w:hanging="360" for both bullet and decimal levels, but office2pdf starts the markers at the page content edge.

Reproduction

Convert tests/fixtures/docx/pr_187_contributor_acceptance.docx and compare page 1 with a native Microsoft Word PDF export.

Expected

Bullet and decimal markers use the numbering level's left and hanging indents, matching Word's marker and text positions.

Actual

Markers and list text are shifted left because the numbering-level indentation is not reflected in the rendered list.

Visual comparison

Ground truth is on the left; office2pdf output at filing time is on the right. Both pages were rendered with pdftoppm at 150 DPI.

GT and office2pdf output

Related to #187.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions