OperandText

Content stream editing

Description

Serialises one operand of one instruction back to content stream syntax

Syntax

Delphi

Function TPDFContentProgram.OperandText(Index, OperandIndex: Integer): AnsiString;

Parameters

IndexZero-based index of the instruction holding the operand
OperandIndexZero-based index of the operand to serialise

Return values

The operand serialised back to content stream syntax, or the empty string '' when the operand is absent

Remarks

Pair this method with SetOperand, which decodes operand source text in the opposite direction; see CanonicalNumbers for how parsed numeric operands keep their source text until they are rewritten at the program's precision

See also

SetOperand, CanonicalNumbers, Item, TPDFContentProgram