THPDFContractDocumentSource
Unit: HPDFContractCompareCore
THPDFContractDocumentSource = record
Context: Pointer;
PageCount: THPDFContractPageCount;
SemanticPage: THPDFContractSemanticPage;
VisibleBox: THPDFContractVisibleBox;
end;
PageCount(Context) returns the stable loaded page count; SemanticPage(Context, PageIndex, Layout) returns actual semantic text and positions; VisibleBox(Context, PageIndex, Left, Bottom, Right, Top) returns visible bounds through Single outputs
Page indices are zero-based and geometry uses PDF user space; preserve callback contexts and source data unchanged until comparison returns
HPDFHeadlessContractSource creates this record from a THPDFHeadlessDocument, preserving native parsing, extraction and resource policies