mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 22:19:10 -06:00
Stream::decoded_within reads /DecodeParms only when it is direct, so an image whose PNG predictor was given by reference decoded with its row tags still in the data. The cleared bytes then drifted one byte further from the covered pixels each row, and the covered samples survived in the redacted copy, recoverable by applying the predictor. Parameters are now made direct first (Document::with_direct_parms). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
719 B
TOML
25 lines
719 B
TOML
[package]
|
|
name = "pdfcraft-redact"
|
|
description = "Redaction (architecture §11.2): marks, apply (glyphs, images, vectors, XObjects, annotations, fields), verification"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
pdfcraft-cos = { workspace = true }
|
|
pdfcraft-content = { workspace = true }
|
|
pdfcraft-fonts = { workspace = true }
|
|
pdfcraft-model = { workspace = true }
|
|
pdfcraft-forms = { workspace = true }
|
|
pdfcraft-edit = { workspace = true }
|
|
pdfcraft-annot = { workspace = true }
|
|
pdfcraft-xfa = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
pdfcraft-filters = { workspace = true }
|
|
pdfcraft-testkit = { workspace = true }
|