THPDFObjectGraphJSONLimits Record
Bounds parser work, retained values, and imported binary payloads before an object graph can be committed
Declaration
THPDFObjectGraphJSONLimits = record
MaxJSONBytes: Int64;
MaxObjectCount: Integer;
MaxObjectNumber: Integer;
MaxNestingDepth: Integer;
MaxStringBytes: Int64;
MaxStreamBytes: Int64;
MaxAggregateStreamBytes: Int64;
class function Default: THPDFObjectGraphJSONLimits; static;
end;
Usage
Start with THPDFObjectGraphJSONLimits.Default and reduce individual ceilings to match the trusted size of the exchange channel
Structural ceilings must be positive, stream-byte ceilings may be zero to reject payload bytes, and MaxJSONBytes must leave room for bounded end-of-input detection