Docs PDFiumVCL

ValidatePdfR method

Questa voce API conserva identificatori, firme, blocchi di codice e termini PDF nella forma originale.
Component: TPdf  ·  Unit: PDFium
Inspects the currently open PDF for PDF/R-1 compliance markers and returns a structured result with the detected conformance level plus the set of issues found.

Syntax

function ValidatePdfR: TPdfRValidationResult;

Description

ValidatePdfR walks the open document looking for the file-format markers defined by ISO 23504-1:2020:

The result is a TPdfRValidationResult record:

ValidatePdfR is a read-only file-format inspection. PDF/R-1 compliance has strict structural requirements that this method does not check — per-page Contents structure, MediaBox form, allowed filters, generation-zero indirect references, strip layout. Pair with a TWAIN Working Group PDF/R validator for those content-level checks.

Remarks

Example

uses System.TypInfo;

var
  Outcome: TPdfRValidationResult;
  Issue: TPdfRValidationIssue;
begin
  Pdf1.FileName := 'C:\Incoming\scan.pdf';
  Pdf1.Active := True;
  Outcome := Pdf1.ValidatePdfR;
  Memo1.Lines.Add('Level: ' + GetEnumName(TypeInfo(TPdfRConformance),
    Ord(Outcome.Conformance)));
  for Issue in Outcome.Issues do
    Memo1.Lines.Add('- ' + GetEnumName(TypeInfo(TPdfRValidationIssue), Ord(Issue)));
end;

See Also

PdfRConformance, SaveAsPdfR, SaveAsPdfRToStream, ValidatePdfA, ValidatePdfX