THPDFTransparencyFlattenInfo Record
Reports the status, transparency object count, raster size, tiling and output colour space of 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 colours preserved without flattening, or the render failed |
TransparencyObjectCount | Transparency-bearing objects the display list turned up on the page |
PixelCount | How many raster pixels the flattened page needs in total at the requested DPI |
TileCount | How many tiles the raster was split into under the tile pixel budget |
PeakTilePixels | Pixel count of the largest single tile that was processed |
PeakWorkingBytes | Highest amount of working memory held during rasterisation |
OutputColorSpace | Colour space name of the flattened output image |
SpotColorants | Spot colorant names detected on the page; non-empty where the run kept spot colours |
Usage notes
- Fill it with
FlattenLoadedPageTransparency; the statustfsSpotColorPreservedmeans the page was left untouched because spot colorants were present on it - The page is rasterised only when the transparency object count reaches the configured minimum, so check
Statusbefore assuming a flatten took place PixelCountabove theMaxRasterPixelsbudget raises an exception before any rendering starts, yet the record still reports the measured count