THPDFDiagnosticRepairOptions Record

控制 RepairDiagnosticDocument 的資源上限與輸出驗證

宣告

THPDFDiagnosticRepairOptions = record
  MaxInputBytes: Int64;
  MaxObjectCount: Integer;
  MaxObjectNumber: Integer;
  VerifyOutput: Boolean;
  Password: AnsiString;
  class function Default: THPDFDiagnosticRepairOptions; static;
end;

預設值

欄位預設值效果
MaxInputBytes8 GiB掃描前就拒收超過上限的來源檔
MaxObjectCount2,000,000限制已驗證間接物件中繼資料的數量
MaxObjectNumber2,000,000限制 xref 列的產生數量,並防堵稀疏物件編號濫用
VerifyOutputTrue發布前以停用 xref 復原的方式重新載入暫存結果
Password空字串提供加密診斷文件在嚴格重新載入驗證時使用的密碼

另請參閱: 可編輯診斷文件與修復, THPDFDiagnosticRepairReport