THotPDF.AddLoadedTextAnnotation Method
方法摘要: THotPDF.AddLoadedTextAnnotation Method
声明
procedure AddLoadedTextAnnotation(PageIndex: Integer; ARect: THPDFRect; const AContents: AnsiString; const AAuthor: AnsiString);
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
PageIndex | 目标页面的从零开始的索引 |
ARect | 注释图标在页面上的放置矩形区域(PDF 用户坐标) |
AContents | 注释的文字内容,展开便签时显示给用户 |
AAuthor | 注释的作者名称,写入 PDF 注释的 T 条目 |
使用注意事项
- 文本注释以小图标呈现在页面上,不直接显示内容文字;用户需点击图标才能展开查看
- 坐标系原点为页面左下角,y 轴向上;请确保 ARect 在页面有效范围内
- 添加注释后须调用保存方法才能将注释写入输出文件,否则注释仅存在于内存中
相关 API
- AddLoadedFreeTextAnnotation
- SetLoadedAnnotationColor
- THotPDF
- 目录