PDFium Delphi Component Docs

PageComplexity property

Component: TPdf  ·  Unit: PDFium
A cost estimate for the current page: object counts, path segments, image pixels, and transparency

Syntax

property PageComplexity: TPdfPageComplexity; // read-only

Description

Returns ImageCount, PathCount, TextObjectCount, TotalPathSegments, TotalImagePixels, and HasTransparency for the current page

Rendering cost varies by orders of magnitude between a text page and a map with a hundred thousand path segments. Measuring first lets an application choose a strategy - progressive rendering, banding, a lower preview resolution - before it commits to a full-page render

HasTransparency matters separately, because a transparency group forces a compositing pass that a page without one avoids

See Also

RenderPage, RenderPageProgressive, RenderPageBanded, GetFeatureInventory