THPDFObjectGraphJSONLimits Record

在物件圖可以提交之前,約束剖析器工作、保留的值與匯入的二進位 payload

宣告

THPDFObjectGraphJSONLimits = record
  MaxJSONBytes: Int64;
  MaxObjectCount: Integer;
  MaxObjectNumber: Integer;
  MaxNestingDepth: Integer;
  MaxStringBytes: Int64;
  MaxStreamBytes: Int64;
  MaxAggregateStreamBytes: Int64;
  class function Default: THPDFObjectGraphJSONLimits; static;
end;

用法

從 THPDFObjectGraphJSONLimits.Default 開始,再調降各個上限,以貼合交換通道的可信規模

結構上限必須為正數;串流位元組上限可為零以拒收 payload 位元組;MaxJSONBytes 必須保留足夠餘裕做有界的輸入結束偵測

THotPDF.ImportLoadedObjectGraphJSON 方法