THPDFLinearizationValidationInfo Record

Per-part verdicts for a linearized source: linearization dictionary, first-page section, page-offset hints, and shared-object hints, plus the parsed header values and a diagnostic string

Declaration

THPDFLinearizationValidationInfo= record
  DictionaryValid: boolean;
  FirstPageSectionValid: boolean;
  PageOffsetHintsValid: boolean;
  SharedObjectHintsValid: boolean;
  FirstPageObjectNumber: Integer;
  PageCount: Integer;
  HintOffset: Int64;
  HintLength: Int64;
  FirstPageEndOffset: Int64;
  MainXRefOffset: Int64;
  Valid: boolean;
  Diagnostic: AnsiString;
end;

Unit

HPDFDoc

Fields

FieldPurpose
DictionaryValidtrue when the /L, /O, /E, /N, /T, and /H dictionary entries parse and their ranges stay consistent with the file size
FirstPageSectionValidtrue when the first-page object section checks out, including the declared end offset
PageOffsetHintsValidtrue when the page-offset hint stream decodes and its values match the document
SharedObjectHintsValidtrue when the shared-object hint stream decodes and its values match the document
FirstPageObjectNumberObject number parsed from the dictionary's /O entry
PageCountPage count parsed from the dictionary's /N entry
HintOffset / HintLengthByte range of the primary hint stream from the dictionary's /H entry
FirstPageEndOffsetEnd offset of the first-page section from the dictionary's /E entry
MainXRefOffsetOffset of the main cross-reference table from the dictionary's /T entry
ValidOverall verdict, true only when every part-specific check passed; mirrors the function result
DiagnosticFail-closed reason text naming the first check that failed

Usage notes

Related APIs