THPDFContentOperatorVisitOptions
定義有界的遍歷與轉換上限
宣告
THPDFContentOperatorVisitOptions = record
MaxSourceBytes: Int64;
MaxOperators: Integer;
MaxLexemes: Integer;
MaxDepth: Integer;
MaxReplacementBytes: Int64;
ValidateOutput: boolean;
class function Default: THPDFContentOperatorVisitOptions; static;
end;
參數
這個 record 除了所用遍歷函式的參數之外,沒有其他方法參數
傳回值
Default 回傳 256 MiB 來源、1,000,000 個運算子、4,194,304 個詞素、256 層深度與 64 MiB replacement 上限,並啟用輸出驗證
使用說明
- 不受信任或對延遲敏感的工作負載請用更嚴格的值
- 非正數的結構上限會在剖析前直接失敗
- 轉換後的位元組要存檔或轉譯時,保持
ValidateOutput=True