docs(redact): say which objects hidden-information removal reaches

This commit is contained in:
aiongg
2026-10-22 13:28:40 -04:00
committed by Dylan M. Taylor
parent 94563649e6
commit 4d64ca8e2d
+5 -1
View File
@@ -71,7 +71,11 @@ sanitize::sanitize(&mut doc)?; // all of them
Categories: metadata (`/Info`, XMP), file attachments, comments, form fields (flattened so the
values 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 Social
Security numbers and dates for Search & Redact.