THotPDF.NewLoadedAnnotation Method
方法摘要: THotPDF.NewLoadedAnnotation Method
声明
function NewLoadedAnnotation(PageIndex: Integer; const ASubtype: AnsiString; ARect: THPDFRect): THPDFDictionaryObject;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
PageIndex | 目标页面的零起始索引,指定注释所在页面 |
X1 | NewLoadedAnnotation 使用的输入 |
Y1 | NewLoadedAnnotation 使用的输入 |
X2 | NewLoadedAnnotation 使用的输入 |
Y2 | NewLoadedAnnotation 使用的输入 |
ASubtype | NewLoadedAnnotation 使用的输入 |
返回值
返回 THPDFDictionaryObject 值
使用注意事项
- ASubtype 必须符合 PDF 规范中定义的有效注释子类型字符串,无效子类型可能导致阅读器忽略该注释
- 新建注释会被自动注册到目标页面的 Annots 数组,无需手动将其追加到页面字典
- 保存文档前若修改返回的字典对象,必须使用文档内部的修改机制,不得在文档关闭后持有该引用