THotPDF.RecompressLoadedJPEGImages Method
Decodes eligible DCT images and adopts a new JPEG stream only when the minimum savings policy is met
Declaration
function RecompressLoadedJPEGImages(Quality: TJPEGQualityRange;
EligibleColorSpaces: THPDFOptimizationColorSpaces;
MinimumSavingsBytes: Int64;
out AInfo: THPDFLoadedResourceOptimizationInfo): Integer;
Safety
Image masks and colour-key masks are left unchanged whilst soft-mask references remain attached
Three-component ICCBased, CalGray and CalRGB inputs are colour converted and written with an explicit calibrated RGB colour space after rendering, whilst Lab, non-RGB ICCBased, Separation and DeviceN images are left unchanged
PreservedCalibratedImageCount, SkippedCalibratedImageCount and SkippedSpotColorImageCount carry these decisions in THPDFLoadedResourceOptimizationInfo