THPDFContentSemanticCompareInfo Record
Reports the verdict and the first differing event of a semantic comparison between two content streams
Declaration
THPDFContentSemanticCompareInfo= record
Left: THPDFContentSemanticStatistics;
Right: THPDFContentSemanticStatistics;
FirstDifferentEvent: Integer;
Equivalent: boolean;
end;
Unit
HPDFContentStream
Fields
| Field | Purpose |
|---|---|
Left | Normalisation statistics of the left stream |
Right | Normalisation statistics of the right stream |
FirstDifferentEvent | Zero-based index of the first differing normalized event, counted by scanning the canonical byte forms; -1 before comparison, when either side failed or when the streams are equivalent |
Equivalent | True when both streams normalize to the same canonical byte form within the number tolerance |
Usage notes
- Returned by
HPDFCompareContentStreamsSemanticwhen comparing re-saved, optimized, or rewritten page content - Use
FirstDifferentEventto jump to the first behavioural difference rather than diffing raw bytes - The
NumberToleranceparameter controls how close floating-point operands must be to count as equal