THotPDF.DeduplicateLoadedFormXObjects Method
Replaces equivalent Form XObjects with one canonical indirect stream and rewrites every matching reference
Declaration
function DeduplicateLoadedFormXObjects(
out AInfo: THPDFLoadedResourceOptimizationInfo): Integer;
Comparison
Canonical comparison sorts dictionary keys and recursively compares decoded stream content and referenced resource graphs whilst ignoring only stream storage filters and lengths