THPDFLoadedAnnotationInfo 记录
已加载页面单个注释的只读元数据,取自其注释字典:子类型、内容、矩形、标题、标志、外观存在性、对象编号和页面索引
声明
THPDFLoadedAnnotationInfo= record
Subtype: AnsiString;
Contents: AnsiString;
Rect: THPDFRect;
Title: AnsiString;
Flags: Integer;
HasAppearance: boolean;
ObjectNumber: Integer;
PageIndex: Integer;
end;
单元
HPDFDoc
字段
| 字段 | 用途 |
|---|---|
Subtype | 注释的 /Subtype 名称,例如 Text、Link 或 RichMedia |
Contents | 批注的 /Contents 文本 |
Rect | /Rect 数组映射为 THPDFRect 的 Left、Top、Right、Bottom;条目缺失或格式错误时为零值 |
Title | 注释的 /T 标题(作者)字符串 |
Flags | 注释的 /F 标志整数,条目不存在时为零 |
HasAppearance | 注释字典带有 /AP 条目时为 true |
ObjectNumber | 注释字典的间接对象编号 |
PageIndex | 所属页面索引(从零开始),回显请求的页面 |
使用说明
- 用
THotPDF.GetLoadedAnnotationCount枚举注释,用THotPDF.GetLoadedAnnotationInfo逐个获取;返回false时记录保持全零 - 需要摘要字段之外的条目时,请将
ObjectNumber与THotPDF.GetLoadedAnnotationDict配合使用 - FDF 交换导出器消费这条记录来序列化注释,因此这些字段精确定义了能通过 FDF 往返的内容