THPDFDOMRenderStatistics 记录
统计一次声明式布局渲染产生的节、页面、放置、拆分、页眉页脚装饰绘制和结构元素
声明
THPDFDOMRenderStatistics= record
SectionCount: Integer;
PageCount: Integer;
PlacementCount: Int64;
SplitCount: Int64;
HeaderDrawCount: Int64;
FooterDrawCount: Int64;
MaximumContinuationDepth: Integer;
StructureElementCount: Int64;
MarkedContentCount: Int64;
ArtifactCount: Int64;
end;
单元
HPDFLayoutDOM
字段
| 字段 | 用途 |
|---|---|
SectionCount | 从布局文档渲染出的节 |
PageCount | 渲染期间产生的页面 |
PlacementCount | 放置到页面上的组件 |
SplitCount | 跨页边界拆分的组件 |
HeaderDrawCount | 页面装饰阶段发出的页眉装饰绘制 |
FooterDrawCount | 页面装饰阶段发出的页脚装饰绘制 |
MaximumContinuationDepth | 内容跨页流动时使用的最深续排嵌套 |
StructureElementCount | 开启标记 PDF 生成时发出的结构元素 |
MarkedContentCount | 为加标签而发出的标记内容序列 |
ArtifactCount | 渲染期间标记的工件 |
使用说明
- 由
THPDFDOMRenderer.Render在目标文档关闭后返回 - 文档未启用
GenerateStructure时,结构、标记内容和工件计数保持为零 - 在布局测试中用
SplitCount和MaximumContinuationDepth来衡量分页行为