THotPDF.GetDocumentDecodeBudgetInfo Method
Returns aggregate decoded-byte accounting for the current loaded document
Declaration
function GetDocumentDecodeBudgetInfo(out Info: THPDFDocumentDecodeBudgetInfo): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Info | Receives the document limit, accepted bytes, largest chain, chain count, exceeded state, and failing filter |
Return value
Returns True after at least one filter chain starts or a document budget failure occurs
Usage notes
DecodedBytescounts accepted output from every filter stage across independent loaded streamsPeakChainBytesidentifies the largest aggregate chain without retaining its decoded data- Accounting resets automatically at the start of each
LoadFromFile,LoadFromStream, orLoadFromRandomAccessSourceoperation