Документация PDFiumVCL

PdfRConformance property

Эта запись API сохраняет идентификаторы, сигнатуры, блоки кода и термины PDF в исходном виде.
Component: TPdf  ·  Unit: PDFium
Read-only PDF/R conformance level of the currently open document, without needing to call ValidatePdfR explicitly.

Syntax

property PdfRConformance: TPdfRConformance; // read only

Description

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

Possible values:

Use PdfRConformance for routing decisions in document capture / archival workflows ("does this scan claim to be PDF/R?") and for surfacing a single status string in the UI. When the caller also needs to enumerate the specific issues that broke conformance, use ValidatePdfR instead so the parse runs only once.

Remarks

Example

Pdf1.FileName := 'C:\Incoming\scan.pdf';
Pdf1.Active := True;
case Pdf1.PdfRConformance of
  prc1: Status.Caption := 'PDF/R-1';
  prcNone: Status.Caption := 'Not PDF/R';
  prcUnknown: Status.Caption := 'Document not active';
end;

See Also

ValidatePdfR, SaveAsPdfR, SaveAsPdfRToStream, PdfAConformance, PdfXConformance