mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-31 21:48:09 -06:00
An incremental save wrote every object added during the session, whether anything still referred to it or not. A redaction mark added and then cleared (or a comment added and deleted) was therefore written into the file as an unreferenced object, with its QuadPoints, overlay text and author. `SaveOptions::drop_unlinked` writes such additions as free entries instead: objects whose numbers the file never used and that nothing the update writes refers to, walked from the trailer and the file's changed objects through additions only. `/Size` and the numbering stay as before, so undo past the save can bring an object back under its number. The option is off by default because the standalone document timestamp is found by scanning, not by reference; `Session::save_bytes` (Save, and the automation save) turns it on. Full saves already left these objects out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>