THotPDF.RewriteLoadedPageColors Method

Declaration

function RewriteLoadedPageColors(
    const PageIndices: array of Integer;
    const Options: THPDFLoadedColorRewriteOptions;
    out Info: THPDFLoadedColorRewriteInfo): boolean;

Behavior

An empty PageIndices array selects every loaded page and duplicate indices are processed once

The vector strategy converts device-color operators directly unless page content or resources require the complete renderer, while lcrsRasterizeAll explicitly flattens every selected non-preserved page

Successful spot preservation counts the untouched page as processed without adding output bytes

Raster output is an 8-bit lossless Flate image in the selected DeviceGray, DeviceRGB, or DeviceCMYK space

False reports a typed status and diagnostic, rolls back every selected page, and publishes no partial rewrite

Loaded-Page Color Rewrite