THPDFContentOperatorEventData Record

Delivers one content-stream operator visit to a listener with position, state, operand view, and the action to apply

Declaration

THPDFContentOperatorEventData= record
  Phase: THPDFContentOperatorVisitPhase;
  OperationIndex: Integer;
  NodeIndex: Integer;
  OperatorName: AnsiString;
  OperandCount: Integer;
  StartOfs: Integer;
  EndOfs: Integer;
  State: THPDFContentOperatorState;
  View: THPDFContentOperatorView;
  Action: THPDFContentOperatorAction;
  Replacement: SysUtils.TBytes;
end;

Unit

HPDFContentStream

Fields

FieldPurpose
PhaseVisit stage: covpBeginStream, covpOperator, or covpEndStream
OperationIndexZero-based ordinal of the operator in the stream
NodeIndexIndex of the operation node in the syntax tree
OperatorNameOperator text, such as Tj or cm
OperandCountNumber of operands owned by the operation node
StartOfsByte offset where the operation starts in the source stream
EndOfsByte offset just past the operation
StateGraphics state, text object, marked content, and compatibility nesting depths at the visit point
ViewTHPDFContentOperatorView giving read access to operation and operand bytes
ActionListener decision: coaKeep, coaDelete, coaReplace, coaStop, or coaReject
ReplacementNew bytes substituted for the operation when Action is coaReplace

Usage notes

Related APIs