LiftPath

Content stream editing

Description

Lifts the first path object at or after StartIndex into an editable TPDFPath

Syntax

Delphi

Function TPDFContentProgram.LiftPath(StartIndex: Integer): TPDFPath;

Parameters

StartIndexZero-based index the search starts at, inclusive

Return values

The lifted TPDFPath, or nil when no path object is found; the caller frees the returned object

Remarks

A rectangle (re) is lifted as a closed four-line subpath, so lowering it emits the equivalent m/l/l/l/h form; edit the geometry and pass the path to LowerPath to write it back into the program

See also

LowerPath, FindNextGroup, FindInstructionsInRect, TPDFContentProgram, TPDFPath