THotPDF.DocumentDecodeBudgetBytes Property
Sets the maximum decoded bytes accepted across every filter chain in one loaded-document accounting interval
Declaration
property DocumentDecodeBudgetBytes: Int64 read FDocumentDecodeBudgetBytes write SetDocumentDecodeBudgetBytes default 1073741824;
Unit
HPDFDoc
Default
1073741824 bytes, or 1 GiB
Usage notes
- Set the property before loading untrusted input so object streams decoded during load consume the intended ceiling
- The total includes every accepted intermediate and final filter-stage byte, not only bytes returned to the caller
- Zero disables the document-wide ceiling for trusted input whilst the independent
DecodeBudgetByteschain limit remains active - Negative values raise
ERangeError