TraceGraphicsStates

Content stream editing

Description

Returns one effective graphics-state snapshot per instruction in a single sequential pass

Syntax

Delphi

Function TPDFContentProgram.TraceGraphicsStates(Tracker: TPDFContentStateTracker; AfterInstruction: Boolean): TPDFContentGraphicsStateArray;

Parameters

Tracker may be nil for ISO page defaults or a persistent tracker continued from an earlier content layer

AfterInstruction chooses post-operation snapshots when true and pre-operation snapshots when false

Return value

An array in instruction order with exactly Count records