THPDFContentOperatorVisitStatistics 记录

汇总一次操作符访问轮次:状态、字节数、各动作的操作符计数、深度峰值和诊断信息

声明

THPDFContentOperatorVisitStatistics= record
  Status: THPDFContentOperatorVisitStatus;
  SourceBytes: Int64;
  OutputBytes: Int64;
  ReplacementBytes: Int64;
  OperationCount: Integer;
  VisitedOperatorCount: Integer;
  KeptOperatorCount: Integer;
  DeletedOperatorCount: Integer;
  ReplacedOperatorCount: Integer;
  MaximumGraphicsStateDepth: Integer;
  MaximumTextObjectDepth: Integer;
  MaximumMarkedContentDepth: Integer;
  MaximumCompatibilityDepth: Integer;
  Modified: boolean;
  ErrorOffset: Integer;
  Diagnostic: AnsiString;
end;

单元

HPDFContentStream

字段

字段用途
Status最终 THPDFContentOperatorVisitStatus,例如 covsCompleted、covsStopped 或 covsRejected
SourceBytes输入内容流的长度
OutputBytes改写后输出流的长度
ReplacementBytes替换动作插入的总字节数
OperationCount流中发现的操作符数量
VisitedOperatorCount实际递送给监听器的操作符数量
KeptOperatorCount保持不变的操作符数量
DeletedOperatorCount从输出中移除的操作符数量
ReplacedOperatorCount用替换字节改写的操作符数量
MaximumGraphicsStateDepth达到的最深 q 状态嵌套
MaximumTextObjectDepth达到的最深 BT 文本对象嵌套
MaximumMarkedContentDepth达到的最深标记内容嵌套
MaximumCompatibilityDepth达到的最深 BX 兼容性嵌套
Modified输出与输入不同时为 True
ErrorOffset失败处的字节偏移;本轮正常完成时为 -1
DiagnosticStatus 不是 covsCompleted 时的错误文本

使用说明

相关 API