property PdfRConformance: TPdfRConformance; // read only
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:
%PDF-raster-x.y found in the file.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.
prcUnknown when Active is False.
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;