PDFiumVCL Docs

PdfAConformance property

Dieser API-Eintrag behält Bezeichner, Signaturen, Codeblöcke und PDF-Begriffe in ihrer Originalform.
Component: TPdf  ·  Unit: PDFium
Read-only PDF/A conformance level of the currently open document, without needing to call ValidatePdfA explicitly.

Syntax

property PdfAConformance: TPdfAConformance; // read only

Description

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.

Remarks

Example

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 recognised level';
end;

See Also

ValidatePdfA, SaveAsPdfA, SaveAsPdfAToStream