THotPDF.RemoveUnusedLoadedPageResources Method

Removes unused entries from Font, XObject, ExtGState, ColorSpace, Pattern, Shading and Properties resource tables

Declaration

function RemoveUnusedLoadedPageResources(
    out AInfo: THPDFLoadedResourceOptimizationInfo): Integer;

Safety

The scan includes inherited page resources, nested Form content and annotation appearance streams before any entry is removed

Resource and Image Optimization