HPDFCompareHeadlessContracts

Unit: HPDFHeadlessContractCompare

function HPDFCompareHeadlessContracts(BeforeDocument, AfterDocument: THPDFHeadlessDocument;
  const Options: THPDFContractCompareOptions; out Report: THPDFContractCompareReport;
  CancellationToken: THPDFCancellationToken = nil): Boolean;

Compare loaded native documents with the shared semantic contract algorithm; return true only when Report.Status = ccsComplete

Options govern paragraph alignment, word or sentence changes, repeated margin exclusion, page continuations and positive resource limits; reports keep full semantic snapshots and source-line geometry

The documents stay loaded and unchanged for the whole call; their native extraction permissions, cancellation and decoding budgets apply

Native contract comparison · Comparison options · Comparison report