mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-07 11:14:14 +00:00
Add Background draws behind the page content, so on a page that first fills itself with opaque white (browsers' Save as PDF, print drivers) the background was hidden completely and the tool looked broken. - pdfcraft-edit: new `backdrop` module. A strictly detected backdrop (one axis-aligned `re`, opaque white in a device colour space, painted before anything else and covering the crop box) is replaced by turning that one fill into `n` in a per-page copy of its stream; the original stream is left untouched for other pages. Remove background restores it, unless the copy was edited since. Page-sized pictures (scans) are reported only. - Background gains `replace_backdrop` (default on); the default colour is a visible light yellow instead of near-white. - Dialog: offers to replace the backdrop, warns about scanned pages, checks pages a few per frame, preview draws text over the colour. - Automation: `doc_background` takes `replace_backdrop`; new read-only `doc_backdrops` lists pages with a backdrop. Acrobat's behaviour on such pages is unobserved; recorded as our choice in parity/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>