THPDFTransparencyFlattenInfo Record
Reports status, transparency object count, raster size, tiling, and output color space for page transparency flattening
Declaration
THPDFTransparencyFlattenInfo= record
Status: THPDFTransparencyFlattenStatus;
TransparencyObjectCount: Integer;
PixelCount: Int64;
TileCount: Integer;
PeakTilePixels: Int64;
PeakWorkingBytes: Int64;
OutputColorSpace: AnsiString;
SpotColorants: THPDFAnsiStringArray;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Status | Outcome: not required, flattened to calibrated RGB, spot colors preserved without flattening, or render failed |
TransparencyObjectCount | Transparency-bearing objects found on the page by the display list |
PixelCount | Total raster pixels the flattened page requires at the requested DPI |
TileCount | Number of tiles the raster was split into under the tile pixel budget |
PeakTilePixels | Pixel count of the largest single tile processed |
PeakWorkingBytes | Highest amount of working memory held during rasterization |
OutputColorSpace | Color space name of the flattened output image |
SpotColorants | Spot colorant names detected on the page; non-empty when the run kept spot colors |
Usage notes
- Fill it with
FlattenLoadedPageTransparency; the statustfsSpotColorPreservedmeans the page was left untouched because spot colorants were present - The page is rasterized only when the transparency object count reaches the configured minimum, so check
Statusbefore assuming a flatten happened PixelCountabove theMaxRasterPixelsbudget raises an exception before any rendering starts, and the record still reports the measured count