THotPDF.CoalesceLoadedPageContentStreams Method

Decodes every compatible page content stream, inserts a safe whitespace boundary and writes one Flate-compressed replacement stream

Declaration

function CoalesceLoadedPageContentStreams(MinimumSavingsBytes: Int64;
    out AInfo: THPDFLoadedResourceOptimizationInfo): Integer;

Remarks

Multiple streams are coalesced regardless of storage overhead while a single stream is normalized only when it meets the requested savings threshold

Resource and Image Optimization