THPDFHeadlessCompareOptions

Declared in HPDFHeadlessCompare; initialize with Default before adjusting limits or tolerances

FieldDefaultPurpose
MaxObjects / MaxEdges / MaxDepth250000 / 1000000 / 64Object, traversal work and recursion bounds
MaxDifferences10000Maximum report changes
MaxStreamBytes / MaxTotalStreamBytes33554432 / 268435456Per-stream and aggregate decoded structural stream bytes
MaxWorkingBytes / MaxResultBytes268435456 / 16777216Temporary preparation and report storage bounds
MaxPixelsPerPage / MaxTotalPixels16000000 / 128000000Comparison canvas and aggregate rendered input pixels
DPI / ColorTolerance96 / 0Render resolution and maximum unchanged channel delta
LuminanceFalseCompare weighted luminance instead of RGB channels
MinimumSimilarity / MaxChangedPixelRatio1 / 0Minimum similarity and maximum changed pixel fraction
CancellationTokennilOptional caller-owned cancellation source, combined with document tokens

Limits must be positive, MaxWorkingBytes must be at least 4096, DPI must be between 1 and 2400, color tolerance must be between 0 and 255, and both floating-point thresholds must be finite values between 0 and 1

Existing document limits can further restrict traversal and decoding; working memory also caps object indices, sorted dictionaries, bounded text glyphs, page surfaces and prepared PNGs

Rendered input pixels count both documents; page geometry must match even when numerical similarity thresholds are relaxed

Comparison behavior · Comparison function