FindNextGroup

Content stream editing

Description

Returns the first instruction at or after StartIndex whose operator belongs to the spec group Group

Syntax

Delphi

Function TPDFContentProgram.FindNextGroup(StartIndex: Integer; Group: TPDFOpGroup): Integer;

Parameters

StartIndexZero-based index the scan starts at, inclusive
GroupThe TPDFOpGroup 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

Use InstructionGroup to learn the group of a single instruction; FindNextOp matches one exact operator instead; path handling built on this method starts its scan at ogPathConstruction

See also

FindNextOp, InstructionGroup, LiftPath, Count