Mudrit
Reference

PDF/A

PdfaLevel — asserting PDF/A-2B conformance on the signed output

Part of mudrit-pdfsign

PdfaLevel (on SignConfig::pdfa via SignConfigBuilder::pdfa) asserts a PDF/A conformance level on the signed output.

PdfaLevel

Debug + Clone + Copy + PartialEq + Eq, #[non_exhaustive].

Prop

Type

use mudrit_pdfsign::prelude::*;

let cfg = SignConfig::builder()
    .place("F", [350, 60, 560, 160])?
    .pdfa(PdfaLevel::A2b)
    .build();
# Ok::<(), mudrit_pdfsign::Error>(())

What it does — and doesn't do

Mudrit injects the PDF/A markers — an sRGB /OutputIntents entry, a pdfaid XMP packet, and a stable /ID — and preserves the conformance of an already-conformant input.

Asserts, does not convert

.pdfa(PdfaLevel::A2b) asserts PDF/A-2B; it does not convert an arbitrary PDF into PDF/A. Feed it a document that is already PDF/A-2B conformant (or was authored to be) — Mudrit adds the markers and keeps that conformance through signing, it does not fix up an input that isn't already compliant.

Incompatible with output encryption

SignConfig::pdfa cannot be combined with SignConfig::encrypt — PDF/A forbids encryption. Setting both is rejected.

Next

On this page