THPDFContentSemanticStatistics 记录
汇集为单个内容流计算出的规范化操作计数、状态深度和规范字节大小
声明
THPDFContentSemanticStatistics= record
TokenCount: Integer;
OperationCount: Integer;
StateOperationCount: Integer;
RedundantStateOperationCount: Integer;
NormalizedEventCount: Integer;
MaximumGraphicsStateDepth: Integer;
CanonicalBytes: Int64;
ErrorOffset: Integer;
LimitExceeded: boolean;
Valid: boolean;
Diagnostic: AnsiString;
end;
单元
HPDFContentStream
字段
| 字段 | 用途 |
|---|---|
TokenCount | 从流中解析出的令牌 |
OperationCount | 在流中发现的操作符 |
StateOperationCount | 规范化期间跟踪的图形状态操作符 |
RedundantStateOperationCount | 未改变规范状态的状态操作 |
NormalizedEventCount | 规范事件序列中的事件 |
MaximumGraphicsStateDepth | 解释过程中到达的最深图形状态嵌套 |
CanonicalBytes | 为比较而生成的规范字节形式的大小 |
ErrorOffset | 解析或求值失败处的字节偏移 |
LimitExceeded | 操作数或规范字节上限中止本轮处理时为 True |
Valid | 解析或求值失败时为 False |
Diagnostic | Valid 为 False 时的失败描述 |
使用说明
- 由
HPDFNormalizeContentStreamGraphicsState在产出规范字节的同时填充 RedundantStateOperationCount量化了规范化在比较各流之前剔除的状态噪声- 请通过
HPDFCompareContentStreamsSemantic比较两个流,而不要逐字段比较这些记录