TPDFlibContentGraphicsState
Data types
Description
Contains the effective graphics and text state associated with one parsed content instruction
Location fields identify the content layer, zero-based instruction index, operator, graphics-state stack depth, content depth, invocation and parent invocation, container stream object and parent XObject
Graphics fields include CTM, line style, dash pattern, rendering intent, colour spaces, colour operands, pattern resources and the latest external graphics-state resource name
Path fields report transformed bounds, current point, subpath and segment counts, rectangle recognition and a pending clipping rule; clipping fields report effective bounds, exactness, emptiness, the last applied rule, an immutable ordered ClipPaths intersection chain and whether that chain is complete
MarkedContent retains the active outer-to-inner BMC/BDC stack, including each tag, source instruction index, original property operand, direct or named source classification, resolution status, validated MCID and ordered property entries
XObject fields identify the current Do resource, resolved subtype, indirect object number and four-corner invocation bounds; Form fields preserve its original /Matrix, /BBox, resource ownership, group subtype, reference status, traversal result and descendant count
Resolved external state includes rendering intent, black point compensation, stroking and nonstroking overprint, overprint mode, stroke adjustment, blend mode, soft mask, alpha constants, alpha-source mode, text knockout, smoothness, transfer controls and halftone selection
Text fields include text and line matrices, font resource or indirect font reference, font object number, resource-scope identity, size, writing mode and its resolution status, spacing, scaling, leading, rendering mode, rise, text-object membership, per-instruction displacement and metric-resolution status
Syntax
Delphi
TPDFlibContentGraphicsState = PDFlibContentModel.TPDFContentGraphicsState;Remarks
Colour operands are retained as PDF source text so arbitrary DeviceN component counts are not truncated
Device-dependent functions are represented by a PDF name, indirect reference, direct-object marker or compact object source rather than expanded stream data
EnumPageContentStates resolves selected-page fonts and advances TextMatrix exactly; EnumPageContentStatesEx also assigns resource scopes and invocation-tree identity while tracing Forms
Standalone trackers set TextAdvanceResolved only when their measurement callback succeeds
ClipBoundsExact is true only while the effective clipping path is representable as an axis-aligned rectangle; curved, rotated, compound or text clipping retains conservative bounds without claiming exact geometry
Each ClipPaths component retains its kind, fill rule, bounds and normalised transformed segments; text clipping contributes an opaque marker and clears ClipPathsComplete