THPDFXRefMergeInfo Record
Cross-reference merge diagnostics for xref-stream and hybrid-reference loading, including revision precedence flags
Declaration
THPDFXRefMergeInfo= record
HybridRevisionCount: Integer;
HybridOverlapCount: Integer;
OlderRevisionShadowedEntryCount: Integer;
DuplicateEntryCount: Integer;
NewestRevisionPrecedenceApplied: boolean;
HybridStreamPrecedenceApplied: boolean;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
HybridRevisionCount | Revisions encountered that carry both a cross-reference stream and a hybrid reference table |
HybridOverlapCount | Object numbers covered by both halves of a hybrid revision |
OlderRevisionShadowedEntryCount | Entries from older revisions that a newer revision overrode |
DuplicateEntryCount | Entries for the same object number seen within the merged load |
NewestRevisionPrecedenceApplied | True when a newer revision's entry replaced an older one during the merge |
HybridStreamPrecedenceApplied | True when, inside a hybrid revision, the side xref stream entry won over the table stub |
Usage notes
- Fill it with
GetLoadedXRefMergeInfo, which returns true only when at least one counter is nonzero, i.e. the load actually merged conflicting sections - The loader always walks newest revisions first and, within a hybrid revision, applies the side xref stream before the table stub; the two boolean fields confirm both rules fired
- Nonzero
OlderRevisionShadowedEntryCountpairs naturally withTHPDFXRefIntegrityInfo, whose shadowed entry detail shows exactly which definitions lost