property PdfAConformance: TPdfAConformance; // read only
PdfAConformance is the lighter-weight counterpart to
ValidatePdfA: it returns the detected conformance level
directly without materialising the full issue list. The property is
implemented as a thin wrapper that calls ValidatePdfA
and returns the Conformance field, so the result is
always the same value the validator would report.
Possible values, in increasing order of strictness:
Use PdfAConformance for routing decisions ("does this document need re-archiving as PDF/A?") and for surfacing a single status string in the UI. When the caller also needs to enumerate the specific issues that broke conformance, use ValidatePdfA instead so the parse runs only once.
pacNone when Active is False.pdfaid markers, OutputIntent presence with embedded ICC, encryption status, trailer /ID presence, xmp:CreateDate / xmp:ModifyDate presence, and the pdfaid extension schema description. Content-level violations such as transparency, unembedded fonts, or deprecated color spaces are not detected here.
Pdf1.FileName := 'C:\Incoming\report.pdf';
Pdf1.Active := True;
case Pdf1.PdfAConformance of
pac1b: Status.Caption := 'PDF/A-1b';
pac1a: Status.Caption := 'PDF/A-1a';
pac2b: Status.Caption := 'PDF/A-2b';
pac3b: Status.Caption := 'PDF/A-3b';
pacNone: Status.Caption := 'Not PDF/A';
pacUnknown: Status.Caption := 'PDF/A marker without recognized level';
end;