THotPDF.AddLoadedTextAnnotation Method
方法摘要: THotPDF.AddLoadedTextAnnotation Method
声明
procedure AddLoadedTextAnnotation(PageIndex: Integer; ARect: THPDFRect; const AContents: AnsiString; const AAuthor: AnsiString);
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
PageIndex | 从零开始的索引或对象索引,用于选择一个现有项 |
X1 | AddLoadedTextAnnotation 使用的输入 |
Y1 | AddLoadedTextAnnotation 使用的输入 |
X2 | AddLoadedTextAnnotation 使用的输入 |
Y2 | AddLoadedTextAnnotation 使用的输入 |
AContents | 存储在 PDF 对象、动作、注释或结构元素中的人类可读文本 |
AAuthor | AddLoadedTextAnnotation 使用的输入 |
返回值
该成员不返回值
使用注意事项
- 文本注释以小图标呈现在页面上,不直接显示内容文字;用户需点击图标才能展开查看
- 坐标系原点为页面左下角,y 轴向上;请确保 ARect 在页面有效范围内
- 添加注释后须调用保存方法才能将注释写入输出文件,否则注释仅存在于内存中