AddNoteAnnotation
注释和热点链接
描述
向选定页面添加便笺注释。颜色参数值范围为 0 至 1,其中 0 表示该颜色的 0%,1 表示 100%
由于此写入器会创建链接的 /Popup 注释和 PDF 1.3 注释标志,因此保存前会自动将 PDF 1.2 文档提升至 PDF 1.3
语法
Delphi
Function TPDFlib.AddNoteAnnotation(Left, Top: Double; AnnotType: Integer; PopupLeft, PopupTop, PopupWidth, PopupHeight: Double; Const Title, Contents: WideString; Red, Green, Blue: Double; Open: Integer): Integer;
ActiveX
Function PDFlib::AddNoteAnnotation(Left As Double, Top As Double, AnnotType As Long, PopupLeft As Double, PopupTop As Double, PopupWidth As Double, PopupHeight As Double, Title As String, Contents As String, Red As Double, Green As Double, Blue As Double, Open As Long) As Long
DLL
int DLAddNoteAnnotation(int InstanceID, double Left, double Top, int AnnotType, double PopupLeft, double PopupTop, double PopupWidth, double PopupHeight, const wchar_t * Title, const wchar_t * Contents, double Red, double Green, double Blue, int Open);
参数
注释锚点的水平坐标
Left
批注锚点的垂直坐标
Top
注释类型:
0 = 注释
1 = 注释
2 = Help
3 = 插入
4 = 键
5 = 新段落
6 = 段落
向上述任一值加 100,可禁止在弹出注释's 标题中显示日期
AnnotType
PopupLeft
弹出窗口左边缘的水平坐标
PopupTop
弹出窗口左边缘的垂直坐标
PopupWidth
弹出窗口的宽度
PopupHeight
弹出窗口高度
Title
批注标题
Contents
弹出批注的正文
Red
注释颜色的红色分量
Green
注释颜色的绿色分量
Blue
注释颜色的蓝色分量
Open
指定是否在打开文档时显示注释:
0 = 隐藏
1 = 显示
double PopupWidth, double PopupHeight, wchar_t * Title, wchar_t * Contents, double Red, double Green, double Blue, int Open);