GetParserLimits

Document loading, security, performance

Description

Returns the parser limits configured on the library instance

Syntax

Delphi

Function TPDFlib.GetParserLimits(Out MaxNesting, MaxContainerItems: Integer): Integer; Overload;
Function TPDFlib.GetParserLimits(Out MaxNesting, MaxContainerItems, MaxErrors: Integer): Integer; Overload;

Parameters

MaxNestingReceives the maximum nested array and dictionary depth
MaxContainerItemsReceives the maximum items in one array or dictionary, where 0 means unlimited
MaxErrorsReceives the maximum tolerated parser errors, where 0 means unlimited

Return values

1The configured limits were returned

Remarks

A new instance defaults to a nesting limit of 256 with no container item or error-count limit

The two-parameter overload leaves out MaxErrors