THPDFContractDocumentSource

Unit: HPDFContractCompareCore

THPDFContractDocumentSource = record
  Context: Pointer;
  PageCount: THPDFContractPageCount;
  SemanticPage: THPDFContractSemanticPage;
  VisibleBox: THPDFContractVisibleBox;
end;

PageCount(Context) gives the stable loaded page count; SemanticPage(Context, PageIndex, Layout) gives the actual semantic text and positions; VisibleBox(Context, PageIndex, Left, Bottom, Right, Top) gives visible bounds through Single outputs

Page indices are zero-based and geometry uses PDF user space; keep callback contexts and source data unchanged until the comparison returns

HPDFHeadlessContractSource builds this record from a THPDFHeadlessDocument, keeping native parsing, extraction and resource policies

HPDFCompareContractSources · Native contract comparison