TPDFInstructionRange

Content stream editing

Description

TPDFInstructionRange (unit Lib\PDFlibContentModel.pas, added in v3.178.0) is the inclusive instruction-index range [First..Last] used by the redaction engine to describe which instructions to delete from a layer; FindInstructionsInRect returns an array of these ranges

Syntax

Delphi

TPDFInstructionRange = Record
  First, Last: Integer;
End;

Key members

First, LastInclusive zero-based instruction indexes of the range

Remarks

Ranges from FindInstructionsInRect arrive in ascending First order; delete them descending with DeleteRange to keep earlier indexes stable

See also

FindInstructionsInRect, DeleteRange, TPDFContentProgram, ApplyContentFilterChain