FindNextOp
Content stream editing
Description
Returns the first instruction at or after StartIndex whose operator equals Op
Syntax
Delphi
Function TPDFContentProgram.FindNextOp(StartIndex: Integer; Op: TPDFContentOperator): Integer;Parameters
| StartIndex | Zero-based index the scan starts at, inclusive |
|---|---|
| Op | The TPDFContentOperator value to match |
Return values
The zero-based index of the first matching instruction at or after StartIndex, or -1 when none is found
Remarks
The scan includes StartIndex itself; call this method again with the found index plus 1 to enumerate every instruction with one operator; use FindNextGroup to match any operator of one spec group instead