Skip to content

XLSX: parse six-digit RGB style colors for fills and fonts #328

Description

@developer0hye

Summary

XLSX cell styles that store colors as six-digit RRGGBB values lose those colors during conversion. The contributor acceptance fixture uses D9EAF7 for the header fill and 16324F for the header text, but the office2pdf PDF renders a white fill and black text.

Reproduction

Convert tests/fixtures/xlsx/pr_186_contributor_acceptance.xlsx and compare page 1 with a native Microsoft Excel PDF export.

Expected

The header cells have a light blue fill and dark blue text matching the workbook.

Actual

The fill is white and the text is black. parse_argb_color currently rejects values shorter than eight characters, although OOXML producers may emit six-digit RGB values.

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 #186 and #327.

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