docs(redact): say that a mark with no readable area fails apply

The apply section of the redact README described the fail-closed rules but not the new refusal of a Redact annotation with neither a usable QuadPoints array nor a usable Rect. Documented here with the error name and the page scope of the count. No behaviour change in this commit.
This commit is contained in:
eliets2
2026-10-20 21:03:24 +03:00
parent 92c979c5b2
commit 71e0346186
+3 -1
View File
@@ -32,7 +32,9 @@ clear_marks(&mut doc, None)?; // remove marks without app
A verification pass re-reads each redacted page and fails the operation if any glyph or inline
image is still under an area. Content that can't be decoded makes the operation fail rather than
leave it unredacted.
leave it unredacted. A Redact annotation with neither a usable `/QuadPoints` array nor a usable
`/Rect` makes it fail with `RedactError::UnreadableMark` before anything changes, instead of
skipping that mark. The count covers the marks on the pages being applied.
Before changing any page, `apply` prepares the redaction appearances with a shared 8 MiB
budget for their uncompressed PDF content across the selected pages. It bounds repeated-text