PDFiumVCL 文件

PdfEConformance property

此 API 條目保留識別符號、簽名、程式碼塊和 PDF 術語的原始形式。
Component: TPdf  ·  Unit: PDFium
Read-only PDF/E conformance level of the currently open document, without needing to call ValidatePdfE explicitly.

Syntax

property PdfEConformance: TPdfEConformance; // read only

Description

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

Possible values:

Use PdfEConformance for routing decisions in engineering workflows ("does this drawing need to go through the PDF/E promotion 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 ValidatePdfE instead so the parse runs only once.

Remarks

Example

Pdf1.FileName := 'C:\Incoming\drawing.pdf';
Pdf1.Active := True;
case Pdf1.PdfEConformance of
  pec1: Status.Caption := 'PDF/E-1';
  pecNone: Status.Caption := 'Not PDF/E';
  pecUnknown: Status.Caption := 'PDF/E marker present but version unknown';
end;

See Also

ValidatePdfE, SaveAsPdfE, SaveAsPdfEToStream, PdfAConformance, PdfUaConformance