THotPDF.ApplyStrictParserBudgetPolicy
Applies conservative token, container, and malformed-input limits before loading an untrusted PDF
Declaration
procedure ApplyStrictParserBudgetPolicy;
Limits
The policy selects 1,048,576 token bytes, 100,000 total tokens, 10,000 entries per container, and 8 malformed tokens
Remarks
Call the method before LoadFromFile, LoadFromStream, or LoadFromRandomAccessSource
See also: Bounded PDF Parser Budgets, ResetParserBudgetPolicy