pub fn redact_text(
pdf_bytes: &[u8],
patterns: &[RedactionPattern],
) -> Result<Vec<u8>, FormeError>Expand description
Redact text matching patterns from a PDF.
Convenience wrapper: finds text regions matching the patterns, then applies coordinate-based redaction to all matches.