THPDFContentSemanticStatistics Record
收集為單一內容串流計算的正規化運算計數、狀態深度與標準位元組大小
宣告
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 | 從串流解析出的 token 數 |
OperationCount | 串流中找到的運算子數 |
StateOperationCount | 正規化期間追蹤到的圖形狀態運算子數 |
RedundantStateOperationCount | 未改變標準狀態的狀態運算數 |
NormalizedEventCount | 標準事件序列中的事件數 |
MaximumGraphicsStateDepth | 解譯期間到達的最深圖形狀態巢狀層數 |
CanonicalBytes | 為比較而產生的標準位元組形式大小 |
ErrorOffset | 解析或求值失敗處的位元組偏移 |
LimitExceeded | 運算或標準位元組上限中止本次處理時為 True |
Valid | 解析或求值失敗時為 False |
Diagnostic | Valid 為 False 時的失敗說明 |
使用說明
- 由
HPDFNormalizeContentStreamGraphicsState在產出標準位元組的同時一併填入 RedundantStateOperationCount量化正規化在比較串流之前會移除的狀態雜訊- 請透過
HPDFCompareContentStreamsSemantic比較兩個串流,不要逐欄位比較這些記錄