PDFiumVCL Docs

PdfXConformance property

이 API 항목은 식별자, 시그니처, 코드 블록, PDF 용어를 원래 형태로 유지합니다.
Component: TPdf  ·  Unit: PDFium
Read-only PDF/X conformance level of the currently open document, without needing to call ValidatePdfX explicitly.

Syntax

property PdfXConformance: TPdfXConformance; // read only

Description

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

Possible values:

Use PdfXConformance for routing decisions in print workflows ("does this advertisement need preflight before submission?") and for surfacing a single status string in the UI. When the caller also needs to enumerate the specific issues that broke conformance, use ValidatePdfX instead so the parse runs only once.

Remarks

Example

Pdf1.FileName := 'C:\Incoming\ad.pdf';
Pdf1.Active := True;
case Pdf1.PdfXConformance of
  pxc1a: Status.Caption := 'PDF/X-1a (CMYK + spot)';
  pxc3: Status.Caption := 'PDF/X-3 (CMYK / RGB / ICC)';
  pxc4: Status.Caption := 'PDF/X-4 (transparency / layers)';
  pxcNone: Status.Caption := 'Not PDF/X';
  pxcUnknown: Status.Caption := 'PDF/X marker present but version unknown';
end;

See Also

ValidatePdfX, SaveAsPdfX, SaveAsPdfXToStream, PdfAConformance, PdfEConformance, PdfUaConformance