mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-14 05:23:32 +00:00
The cover walk read the first operand of g, gs and Do, while the renderer takes operands from the end, so surplus operands could make the audit see a white cover, a translucent state or an empty form where the page paints an opaque black rectangle. It also kept only the last subpath of a path, so a cover followed by another rectangle in the same fill went unseen. g now reads its last operand like rg and k, and gs and Do use last_name. The path keeps every rectangular subpath with its winding; a fill paints them all, and where the even-odd rule or opposite windings can cut holes the painted region is worked out on the rectangles' edge grid, bounded per page.