mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 11:37:59 -06:00
A rewritten paragraph is drawn before its text object and restated only the font, spacing and fill. Anything the text object set before its first show was lost: `1 Tr 1 0 0 RG 2 w` inside BT turned red outline text into filled black text, and `/GS1 gs` inside BT made semi-transparent text opaque, even when the text was unchanged. The interpreter now tracks stroke colour, line width and the ExtGStates selected (bounded to 32 distinct names), and the rewrite restates whatever differs from the state in force where it is drawn. Styled runs restate it per run, too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>