PDFiumVCL Docs

PdfUaConformance property

Denna API-post behåller identifierare, signaturer, kodblock och PDF-termer i ursprunglig form.
Component: TPdf  ·  Unit: PDFium
Read-only PDF/UA conformance level of the currently open document, without needing to call ValidatePdfUa explicitly.

Syntax

property PdfUaConformance: TPdfUaConformance; // read only

Description

PdfUaConformance is the lighter-weight counterpart to ValidatePdfUa: it returns the detected conformance level directly without materialising the full issue list. The property is implemented as a thin wrapper that calls ValidatePdfUa and returns the Conformance field, so the result is always the same value the validator would report.

Possible values:

Use PdfUaConformance for routing decisions ("does this document need to go through the PDF/UA tagging pipeline?") and for surfacing a single status string in the UI. When the caller also needs to enumerate the specific issues that broke conformance, use ValidatePdfUa instead so the parse runs only once.

Remarks

Example

Pdf1.FileName := 'C:\Incoming\report.pdf';
Pdf1.Active := True;
case Pdf1.PdfUaConformance of
  puc1: Status.Caption := 'PDF/UA-1';
  pucNone: Status.Caption := 'Not PDF/UA';
  pucUnknown: Status.Caption := 'PDF/UA marker present but level unknown';
end;

See Also

ValidatePdfUa, SaveAsPdfUa, SaveAsPdfUaToStream, IsTagged, PdfAConformance