Skip to content

DOCX: paragraph shading (w:shd) is not rendered #351

Description

@developer0hye

Summary

Paragraph shading (w:shd in w:pPr) is not rendered. Shaded monospace code blocks in the CLI-manual fixture (05_technical_manual_en.docx) lose their light-gray background (w:fill="F4F4F4"), so code is indistinguishable from body text background.

Reproduction

Convert a DOCX containing:

<w:pPr><w:shd w:val="clear" w:fill="F4F4F4"/></w:pPr>

and compare with a Microsoft Word PDF export.

Expected

The paragraph's text area is filled with the shading color across the full paragraph width, as Word prints it.

Actual

The paragraph renders on a plain white background.

Related

Related: #203

Visual comparison

Ground truth (native Microsoft Office export) 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

Activity

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

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