PDFiumVCL Docs

ValidatePdfVT method

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
Component: TPdf  ·  Unit: PDFium
Inspects the currently open PDF for PDF/VT compliance markers and returns a structured result with the detected conformance level plus the set of issues found.

Syntax

function ValidatePdfVT: TPdfVTValidationResult;

Description

ValidatePdfVT walks the open document looking for the file-format-level markers defined by ISO 16612-2:2010:

The result is a TPdfVTValidationResult record:

ValidatePdfVT is read-only. Pair it with a PDF/X preflight tool for full content-level PDF/X-4 verification and a dedicated PDF/VT validator (callas pdfaPilot, etc.) that can walk the DPart tree.

Remarks

Example

uses System.TypInfo;

var
  Outcome: TPdfVTValidationResult;
  Issue: TPdfVTValidationIssue;
begin
  Pdf1.FileName := 'C:\Incoming\statements.pdf';
  Pdf1.Active := True;
  Outcome := Pdf1.ValidatePdfVT;
  Memo1.Lines.Add('Level: ' + GetEnumName(TypeInfo(TPdfVTConformance),
    Ord(Outcome.Conformance)));
  for Issue in Outcome.Issues do
    Memo1.Lines.Add('- ' + GetEnumName(TypeInfo(TPdfVTValidationIssue), Ord(Issue)));
end;

See Also

PdfVTConformance, SaveAsPdfVT, SaveAsPdfVTToStream, ValidatePdfX