THotPDF.FlattenLoadedPageTransparency Method
Replaces page content with lossless calibrated RGB image tiles whilst preserving page boxes, rotation, annotations and structure metadata
Declaration
function FlattenLoadedPageTransparency(PageIndex, DPI,
MinimumTransparencyObjects: Integer; MaxRasterPixels: Int64): boolean; overload;
function FlattenLoadedPageTransparency(PageIndex, DPI,
MinimumTransparencyObjects: Integer; MaxRasterPixels: Int64;
out Info: THPDFTransparencyFlattenInfo): boolean; overload;
function FlattenLoadedPageTransparency(PageIndex, DPI,
MinimumTransparencyObjects: Integer; MaxRasterPixels,
MaxTilePixels: Int64;
out Info: THPDFTransparencyFlattenInfo): boolean; overload;
MaxRasterPixels limits total output resolution, whilst MaxTilePixels bounds each live render, RGB conversion and compression working set. Existing overloads use a 768 by 768 pixel tile budget
Colour semantics
Each generated image tile uses an explicit D65 CalRGB colour space with sRGB primaries and gamma instead of an uncalibrated device colour space
Source ICC, CIE-based, device, soft-mask, transparency-group blending, rendering-intent and black-point-compensation transforms are resolved by the shared colour-managed renderer before samples are encoded
If the page or a nested Form, Pattern, Shading or ExtGState resource uses Separation or DeviceN, the method leaves vector content unchanged and reports tfsSpotColorPreserved
Bounded tile output
Tile boundaries are derived from exact device-pixel edges and mapped back to page coordinates, preventing seams or overlaps at fractional user-space positions. Each tile is rendered, converted, compressed with Flate and released before the next tile begins
THPDFTransparencyFlattenInfo reports the status, transparency-object count, total raster pixel count, tile count, peak tile pixels, measured peak bitmap plus conversion and compression bytes, output colour space, and detected spot colourants