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