THotPDF.RemoveLoadedAnnotation Method
方法摘要: THotPDF.RemoveLoadedAnnotation Method
声明
procedure RemoveLoadedAnnotation(PageIndex, AnnotationIndex: Integer);
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
PageIndex | 目标页面的从零开始的索引 |
AnnotationIndex | 页面注释数组中要删除的注释的从零开始的索引 |
使用注意事项
- 删除后页面注释数组的索引将重新编排,若需删除多条请从高索引向低索引逆序操作
- 表单字段(AcroForm widget)在技术上也是注释,删除 widget 注释可能影响表单填写功能
- 须在保存文档后变更才会写入文件
相关 API
- ClearLoadedAnnotations
- SetLoadedAnnotationContents
- SetLoadedAnnotationFlags
- THotPDF
- 目录