THPDFRotationFlattenInfo 记录
统计扫描的页面数、已扁平化的旋转数,以及被变换的注释、目标位置和结构几何数量
声明
THPDFRotationFlattenInfo= record
ScannedPageCount: Integer;
FlattenedPageCount: Integer;
TransformedAnnotationCount: Integer;
TransformedDestinationCount: Integer;
TransformedStructureGeometryCount: Integer;
end;
单元
HPDFDoc
字段
| 字段 | 用途 |
|---|---|
ScannedPageCount | 页面范围内选中并检查过非零 /Rotate 值的页面数 |
FlattenedPageCount | 90、180 或 270 度旋转被烘进内容流并重置为零的页面数 |
TransformedAnnotationCount | 重新映射后仍落在旋转页面可见区域内的注释矩形数 |
TransformedDestinationCount | 旋转变更后重新映射的链接与书签目标几何数量 |
TransformedStructureGeometryCount | 为新方向调整过的结构树几何条目数 |
使用说明
- 用
FlattenLoadedPageRotation填充;没有 90/180/270 旋转的页面只计入ScannedPageCount - 扁平化会给每个受影响页面追加补偿变换、重写页面框,并把 /Rotate 重置为 0,让查看器不再在屏幕上重复旋转
- 要求每个可点击区域都在方向变更后保持有效时,把
TransformedDestinationCount与文档链接数对比