flpdf 0.6.0

A pure-Rust PDF toolkit modeled on qpdf — read, rewrite, linearize, and inspect PDFs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! File-key and per-object-key algorithm selection from `QPDF_encryption.cc`.
//!
//! qpdf correspondence: `QPDF_encryption.cc` file/object-key ownership.
//!

/// Selects the cipher variant used for PDF Algorithm 1 per-object key
/// derivation.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ObjectKeyAlg {
    /// RC4 variant — no salt appended.
    Rc4,
    /// AES variant — append the four-byte `sAlT` marker.
    Aes,
}