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
| MaxNesting | Receives the maximum nested array and dictionary depth |
|---|---|
| MaxContainerItems | Receives the maximum items in one array or dictionary, where 0 means unlimited |
| MaxErrors | Receives the maximum tolerated parser errors, where 0 means unlimited |
Return values
| 1 | The 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