mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-27 11:57:36 -06:00
The DOCX writer dropped settings.watermark, so a watermark read from Word (or set in WordCraft) was lost on save. Every header part now starts its first paragraph with a VML shape (ECMA-376 Part 4) whose v:textpath carries the text, font, fill colour, semitransparency (v:fill opacity) and diagonal turn, centred on the margins behind the text, with the reader's PowerPlusWaterMarkObject id so it reads back as the watermark, not a shape. The shape type is our own: a straight path the text follows, fitted to the box. Slots the pages show with no header of their own or linked from an earlier section (default; first page with a title page; even pages with even/odd headers) get a header holding only the watermark; linked sections stay linked. A blank watermark isn't written. Check Compatibility no longer warns about watermarks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>