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 and the last applied nonzero or even-odd rule

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 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