THPDFLinearizedPageRangeOptions 记录
渐进式线性化区间规划器的预算与开关:引导区和交叉引用区间的纳入、字节对齐提示、间隙合并,以及页面、组、区间和内存的硬上限
声明
THPDFLinearizedPageRangeOptions= record
IncludeBootstrapRanges: boolean;
IncludeCrossReferenceRanges: boolean;
AllowRowAlignedHints: boolean;
MergeGapBytes: Int64;
MaximumHintBytes: Int64;
MaximumPageCount: Integer;
MaximumSharedGroups: Integer;
MaximumSharedReferences: Integer;
MaximumRanges: Integer;
MaximumPlannedBytes: Int64;
MaximumPlannerMemoryBytes: Int64;
class function Default: THPDFLinearizedPageRangeOptions; static;
end;
单元
HPDFDoc
字段
| 字段 | 用途 |
|---|---|
IncludeBootstrapRanges | 加入任何页面解码之前都需要的头部与引导区字节区间;默认 true |
IncludeCrossReferenceRanges | 把主交叉引用节的字节区间加入规划;默认 true |
AllowRowAlignedHints | 解码时接受可互操作的字节对齐提示布局;默认 true |
MergeGapBytes | 两个规划区间之间的间隙不超过该字节数时合并它们;默认 0(不合并) |
MaximumHintBytes | 拒绝大于该值的提示流;默认 67108864(64 MiB) |
MaximumPageCount | 拒绝页数超过该值的文档;默认 1000000 |
MaximumSharedGroups | 规划的共享对象组数上限;默认 1000000 |
MaximumSharedReferences | 规划的共享对象引用数上限;默认 4000000 |
MaximumRanges | 每个规划输出的字节区间数上限;默认 65536 |
MaximumPlannedBytes | 拒绝总字节覆盖超过该值的规划;默认 536870912(512 MiB) |
MaximumPlannerMemoryBytes | 规划器的工作内存上限;默认 268435456(256 MiB) |
Default | 返回上述值的类函数 |
使用说明
- 从
THPDFLinearizedPageRangeOptions.Default出发;PlanProgressiveLinearizedPageRanges的无参选项重载应用的就是这些值 - 清除
IncludeBootstrapRanges和IncludeCrossReferenceRanges即可只规划页面区间,渐进加载探测就是这样确定头部读取规模的 - 在内存受限的主机上调低
MaximumPlannerMemoryBytes;规划器会带着状态和诊断 fail-closed,而不是超额占用内存