THotPDF.AddLoadedFreeTextAnnotation Method
方法摘要: THotPDF.AddLoadedFreeTextAnnotation Method
声明
procedure AddLoadedFreeTextAnnotation(PageIndex: Integer; ARect: THPDFRect; const AContents: AnsiString);
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
PageIndex | 从零开始的索引或对象索引,用于选择一个现有项 |
X1 | AddLoadedFreeTextAnnotation 使用的输入 |
Y1 | AddLoadedFreeTextAnnotation 使用的输入 |
X2 | AddLoadedFreeTextAnnotation 使用的输入 |
Y2 | AddLoadedFreeTextAnnotation 使用的输入 |
AText | AddLoadedFreeTextAnnotation 使用的输入 |
返回值
该成员不返回值
使用注意事项
- 自由文本注释(FreeText)直接呈现在页面上,与文本注释图标(Text)不同,无需交互即可阅读
- 注释矩形若与页面内容重叠会遮挡原有内容,布局时应选择页面空白区域或边距位置
- 注释的字体和大小由 PDF 查看器默认样式决定;若需精确控制外观,应使用带样式参数的扩展接口