From ce2db2a319e06bb448acbd347518aba7208bdeea Mon Sep 17 00:00:00 2001 From: Grzegorz Martens Date: Mon, 9 Nov 2026 16:55:36 +0100 Subject: [PATCH] M8: the redaction README says a name a form without resources draws stays The Consumers review of 64dfe1fd4. The README said a surviving form loses the resource entries for removed XObjects its own content does not draw. It also keeps those a form without resources of its own, drawn through them, still draws, and since this PR a redacted page keeps them the same way. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY --- crates/redact/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/redact/README.md b/crates/redact/README.md index 51ac11f086..3537bfc547 100644 --- a/crates/redact/README.md +++ b/crates/redact/README.md @@ -148,8 +148,10 @@ used by surviving pages or forms are kept. A redacted page that inherits `/Resources` from the page tree gets them pinned (by reference; a direct inherited dictionary is made one shared object first) before it is rewritten. The parent's `/Resources` is then retired unless another page still inherits it, so it cannot keep a removed -XObject reachable. Surviving form XObjects lose the resource entries for removed XObjects their own -content doesn't draw, for the same reason. Pages that aren't redacted are left untouched. +XObject reachable. Surviving form XObjects lose the resource entries for removed XObjects that +neither their own content nor a form without resources of its own drawn through them still draws, +for the same reason, and a redacted page keeps a name under that rule too. Pages that aren't +redacted are left untouched. ## Remove hidden information / Sanitize