Long-term PDF archiving with PDFluent. Convert documents to PDF/A-1b, PDF/A-2b, and PDF/A-3b for compliance with ISO 19005 and EU archiving mandates.
use pdfluent::{Sdk, pdfa::{PdfaLevel, ConvertOptions}};
let sdk = Sdk::init_with_license("license.json")?;
let doc = sdk.open("annual_report.pdf")?;
// Validate against PDF/A-2b
let result = doc.validate_pdfa(PdfaLevel::A2b)?;
if result.is_compliant() {
println!("Already compliant — nothing to do.");
} else {
println!("{} violation(s) found", result.violations().len());
// Auto-convert: embed fonts, strip transparency, repair XMP
let opts = ConvertOptions::default()
.level(PdfaLevel::A2b)
.embed_missing_fonts(true)
.fix_xmp_metadata(true);
let archive_doc = doc.convert_to_pdfa(opts)?;
archive_doc.save("annual_report_archival.pdf")?;
}Run cargo add [email protected] to get started.
Validate and convert to any ISO 19005 conformance level. Embed fonts, flatten transparency, strip unsupported features — automatically.
PAdES-LT and PAdES-LTA signatures include the full certificate chain, OCSP responses, and RFC 3161 timestamps. Verifiable decades after issuance.
eIDAS-aligned document preservation. Re-timestamping support before certificates expire. Your audit trail survives algorithm deprecation.
XMP metadata repair, document information dictionary normalisation, and conformant colour space embedding via ICC profiles.
Full veraPDF-compatible rule engine built in. No network calls, no third-party service dependency. Suitable for air-gapped environments.
Convert thousands of documents per minute. Parallel processing with detailed per-document reports. JSON output for integration with your audit systems.