THPDFXRefIntegrityInfo Record

Cross-reference table health: entry counts, free chain condition, invalid types, duplicates, and shadowed definitions

Declaration

THPDFXRefIntegrityInfo= record
  EntryCount: Integer;
  FreeEntryCount: Integer;
  FreeChainLength: Integer;
  UnlinkedFreeEntryCount: Integer;
  InvalidFreeLinkCount: Integer;
  FreeCycleCount: Integer;
  InvalidEntryTypeCount: Integer;
  GenerationTransitionErrorCount: Integer;
  DuplicateDefinitionCount: Integer;
  ShadowedDefinitionCount: Integer;
  DroppedShadowedDetailCount: Integer;
  Valid: boolean;
  Diagnostic: AnsiString;
  ShadowedEntries: THPDFXRefShadowedEntryArray;
end;

Unit

HPDFDoc

Fields

FieldPurpose
EntryCountTotal entries across the merged cross-reference sections; a zero value means no integrity data is available
FreeEntryCountEntries marked free (type f)
FreeChainLengthLength of the free-list chain reachable from object zero
UnlinkedFreeEntryCountFree entries that exist but are not reachable through the free chain
InvalidFreeLinkCountFree entries whose /Next-style link points at a non-free entry
FreeCycleCountCycles detected while walking the free chain
InvalidEntryTypeCountEntries whose type byte is neither in-use nor free
GenerationTransitionErrorCountIn-use to free transitions whose generation numbers break the mod-65536 rule
DuplicateDefinitionCountObject numbers defined more than once across revisions
ShadowedDefinitionCountDuplicate definitions whose older copy lost to the newest revision
DroppedShadowedDetailCountShadowed entries whose full detail could not be retained in ShadowedEntries
ValidTrue when the merged table passed every structural check
DiagnosticText describing the first problem class found
ShadowedEntriesPer-entry detail of the shadowed definitions, with active and shadowed type, offset, generation, and revision

Usage notes

Related APIs