THotPDF.ExportLoadedObjectGraphJSONToStream Method

把确定性的 v2 对象图快照或增量更新以流的方式输出到由调用方持有的目标

声明

function ExportLoadedObjectGraphJSONToStream(
    Destination: TStream;
    StreamPayload: THPDFObjectGraphStreamPayload;
    const ExternalStreamDirectory: TFileName;
    Kind: THPDFObjectGraphJSONKind;
    out AInfo: THPDFObjectGraphExportInfo): boolean;

行为

对象按对象号和 generation 排序,字典键按字节序排列,流载荷以有界的分块复制或做 base64 编码

ogjkSnapshot selects the complete loaded graph while ogjkIncrementalUpdate selects dirty, must-write, and deleted objects

External payloads are published atomically inside ExternalStreamDirectory

目标无效、对象图状态不可用、载荷失败或存在未解析引用时返回 False,并通过 AInfo 报告计数器

版本化对象图 JSON 往返