GetGraphicsState
Content stream editing
Description
Traces from ISO page defaults to one zero-based instruction and returns its effective graphics state
Syntax
Delphi
Function TPDFContentProgram.GetGraphicsState(InstructionIndex: Integer; AfterInstruction: Boolean; Out State: TPDFContentGraphicsState): Boolean;Parameters
| InstructionIndex | Zero-based index of the instruction in the program |
|---|---|
| AfterInstruction | True returns the state after the instruction has executed, False the state immediately before it |
| State | Receives the graphics state. It is left zeroed when the index is out of range |
Return values
True when InstructionIndex exists, otherwise false
Remarks
Use TraceGraphicsStates when several instruction states are required because it evaluates the program only once