HPDFCompareHeadlessDocuments
function HPDFCompareHeadlessDocuments(BeforeDocument,
AfterDocument: THPDFHeadlessDocument; Mode: THPDFHeadlessComparisonMode;
const Options: THPDFHeadlessCompareOptions): THPDFHeadlessComparisonReport;
Declared in HPDFHeadlessCompare; both documents must be loaded and contain at least one page, and page indices in the returned changes are zero-based
Use THPDFHeadlessCompareOptions.Default and select a comparison mode; the returned report is complete only after every requested comparison finishes
Invalid options raise an argument exception; exhausted traversal, byte or pixel budgets and native document or rendering failures raise diagnostics, whilst cancellation raises EHPDFOperationCancelled
No partial successful report is returned after failure; input content remains unchanged and temporary bounded text options are restored even when cancellation interrupts extraction
Instances are caller-owned and not thread-safe; keep both documents and cancellation tokens alive and avoid concurrent operations on either instance during this call