THPDFContentOperatorEventData 记录

向监听器递送一次内容流操作符访问,携带位置、状态、操作数视图和要应用的动作

声明

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;

单元

HPDFContentStream

字段

字段用途
Phase访问阶段:covpBeginStream、covpOperator 或 covpEndStream
OperationIndex操作符在流中的从零起算序号
NodeIndex操作节点在语法树中的索引
OperatorName操作符文本,例如 Tj 或 cm
OperandCount操作节点拥有的操作数数量
StartOfs操作在源流中的起始字节偏移
EndOfs操作结束后的字节偏移
State访问点处的图形状态、文本对象、标记内容和兼容性嵌套深度
ViewTHPDFContentOperatorView,提供对操作与操作数字节的只读访问
Action监听器决定:coaKeep、coaDelete、coaReplace、coaStop 或 coaReject
ReplacementAction 为 coaReplace 时用来替换该操作的新字节

使用说明

相关 API