PDFium Component Docs

ValidatePdfVT Metoda

Ten wpis API zachowuje identyfikatory, sygnatury, bloki kodu i terminy PDF w oryginalnej postaci.
Komponent: TPdf  ·  Moduł: PDFium
Sprawdza aktualnie otwarty PDF pod kątem znaczników zgodności PDF/VT i zwraca ustrukturyzowany wynik z wykrytym poziomem zgodności oraz zestawem znalezionych problemów

Składnia

function ValidatePdfVT: TPdfVTValidationResult;

Opis

ValidatePdfVT przeszukuje otwarty dokument w poszukiwaniu file-format-level markers defined by ISO 16612-2:2010:

Wynikiem jest rekord TPdfVTValidationResult:

ValidatePdfVT jest tylko do odczytu. Sprawdza znaczniki formatu pliku, selected DPart tree semantics, exact PDF/VT-to-PDF/X base pairing, and XMP properties whether they are written as elements or RDF attributes. Pair it with a PDF/X preflight engine for full content-level verification and, for PDF/VT-2, a complete file-set validator. PDF/VT-2s is a MIME stream conformance level whose version is signalled by the MIME stream header in ISO 16612-2 Annex A, not by a file-level pdfvtid:GTS_PDFVTVersion value.

Uwagi

Przykład

uses System.TypInfo;

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

Zobacz też

PdfVTConformance, SaveAsPdfVT, SaveAsPdfVTToStream, ValidatePdfX