[pdf] Pages: reorder, rotate, delete, blank, split, merge, images <-> PDF; text from rotated pages

This commit is contained in:
2026-11-16 13:30:42 +01:00
parent ce1e8785d9
commit 249c19ea61
4 changed files with 651 additions and 171 deletions
+4
View File
@@ -212,6 +212,10 @@ fn push_down_resources(doc: &mut Document, pages: &[ObjectId], redacted: &HashSe
}
}
pub(crate) fn prune_form_pub(doc: &mut Document, removed: &HashSet<ObjectId>) {
prune_form(doc, removed)
}
fn prune_form(doc: &mut Document, removed: &HashSet<ObjectId>) {
let Ok(catalog) = doc.catalog() else { return };
let acroform = match catalog.get(b"AcroForm") {