PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
docs(redact): say which objects hidden-information removal reaches
aiongg4d64ca8e2da8
diff --git a/crates/redact/README.md b/crates/redact/README.mdindex 9c2793e24..2caf067b5 100644--- a/crates/redact/README.md+++ b/crates/redact/README.md@@ -71,7 +71,11 @@ sanitize::sanitize(&mut doc)?; // all of themCategories: metadata (`/Info`, XMP), file attachments, comments, form fields (flattened so thevalues stay visible), hidden text (render modes 3 and 7, or wholly off the page), hidden layers(content of off optional-content groups, then the groups), bookmarks, links/actions/JavaScript,-and `/PieceInfo` private data. Both make the next save a full rewrite.+and `/PieceInfo` private data. XMP metadata, private data, associated files (`/AF`) and+additional actions (`/AA`) are removed from every object reachable from the catalog that owns+them (images, fonts, Forms, annotations and fields as well as the catalog and pages), never from+name maps such as resource dictionaries. Content is read strictly: a page whose content can't be+read in full is refused, not cleaned in part. Both make the next save a full rewrite.`patterns` finds phone numbers, e-mail addresses, credit card numbers (Luhn-checked), US SocialSecurity numbers and dates for Search & Redact.