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.
This commit is contained in:
oracola91 committed 2026-11-02 01:35:12 +02:00
1 parent a54fc93d4a
commit 2468d8e470
1 file changed
+2
+2
View File
@@ -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;