pdfcraft/crates/edit
muraa-p f8334d0cd3
fix(edit): refuse a header start number that would wrap the next page (#804) (#834)
Page numbering adds the start number to the position of the page in the run. At the top of the u32 range that addition wrapped, so a release build saved zero for the second page and still reported success, and a debug build hit a caught overflow error instead.

Check the whole run before drawing anything. When the last page number would pass the u32 limit the operation returns an actionable error and the document keeps no header, rather than a half applied run.

Fixes #804.

Co-authored-by: Big Pickle <noreply@opencode.ai>
2026-10-10 15:07:51 -04:00
..
src fix(edit): refuse a header start number that would wrap the next page (#804) (#834) 2026-10-10 15:07:51 -04:00
Cargo.toml Flatten Fill & Sign marks when saving (#464) 2026-10-09 14:25:08 -04:00