[pdf] Compress: E-mail (≤ 5 MB), Web and Print presets; images downsampled and re-encoded, text untouched

This commit is contained in:
2026-11-17 00:04:15 +01:00
parent 27d7e12a51
commit a400ff88a6
3 changed files with 362 additions and 0 deletions
+2
View File
@@ -8,6 +8,7 @@
//! Every function takes the document as bytes plus an optional password and returns new bytes: nothing here touches
//! the file system. Outside files are hostile; call these only inside `pictor-worker`.
mod compress;
mod edit;
mod engine;
mod error;
@@ -17,6 +18,7 @@ mod reader;
mod redact;
mod security;
pub use compress::{CompressPreset, Compressed, EMAIL_TARGET, compress};
pub use edit::*;
pub use engine::Engine;
pub use error::PdfError;