property PdfXConformance: TPdfXConformance; // read only
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.
pxcUnknown when Active is False.
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;