THotPDF.RewriteLoadedPageColors Method

声明

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

行为

PageIndices 数组为空表示选择所有已加载页面,重复的索引只处理一次

矢量策略会直接转换设备颜色操作符,除非页面内容或资源需要完整的渲染器;而 lcrsRasterizeAll 会显式地把每个被选中且未被保留的页面整体栅格化

专色保留成功时,未改动的页面同样计入已处理,且不会增加输出字节

光栅输出是所选 DeviceGray、DeviceRGB 或 DeviceCMYK 空间中的 8 位无损 Flate 图像

False 会报告带类型的状态和诊断,回滚所有选中的页面,不发布任何部分重写的结果

Loaded-Page Colour Rewrite