From 2468d8e470e87a271dbfb20e1e397b614474faf1 Mon Sep 17 00:00:00 2001 From: oracola91 <118899664+oracola91@users.noreply.github.com> Date: Mon, 2 Nov 2026 01:35:12 +0200 Subject: [PATCH] Say why the form path prunes Type 3 fonts without a page Annotation appearances draw through a page's resources, never through a form's own, so the form path passes no page. The form's own patterns and soft masks are still counted. Asked in review. --- crates/redact/src/interp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/redact/src/interp.rs b/crates/redact/src/interp.rs index 8ab7602503..edebb99dcb 100644 --- a/crates/redact/src/interp.rs +++ b/crates/redact/src/interp.rs @@ -884,6 +884,8 @@ fn xobject( out.error = Some(error); return None; } + // No page: annotation appearances draw through a page's resources, never through a + // form's. The form's own patterns and soft masks are still counted. if let Err(error) = crate::type3::prune_type3_from_resources(doc, &mut cleaned_res, content, None) { out.error = Some(error); return None;