AddStampAnnotation
注释和热点链接
描述
向所选页面添加图章注释,颜色参数的取值范围为 0 到 1,其中 0 表示颜色的 0%,1 表示颜色的 100%,颜色仅影响弹出注释的背景色,不影响图章本身
所选文档低于 PDF 1.3 时,写入器会自动将有效 PDF 版本提升至 1.3,因为 PDF 1.3 引入了图章注释
语法
Delphi
Function TPDFlib.AddStampAnnotation(Left, Top, Width, Height: Double; StampType: Integer; Const Title, Contents: WideString; Red, Green, Blue: Double; Options: Integer): Integer;
ActiveX
Function PDFlib::AddStampAnnotation(Left As Double, Top As Double, Width As Double, Height As Double, StampType As Long, Title As String, Contents As String, Red As Double, Green As Double, Blue As Double, Options As Long) As Long
DLL
int DLAddStampAnnotation(int InstanceID, double Left, double Top, double Width, double Height, int StampType, const wchar_t * Title, const wchar_t * Contents, double Red, double Green, double Blue, int Options);
参数
Left
印章注释左边缘的水平坐标
Top
图章注释顶部边缘的垂直坐标
Width
注释的宽度
Height
批注的高度
StampType
0 = 已批准
1 = 实验性
2 = NotApproved
3 = AsIs
4 = 已过期
5 = NotForPublicRelease
6 = 机密
7 = 最终
8 = 已售出
9 = 部门级
10 = ForComment
11 = 绝密
12 = Draft
13 = ForPublicRelease
Title
弹出式批注的标题
Contents
弹出注释的内容
Red
弹出注释'背景颜色的红色分量
Green
弹出注释's 背景颜色的绿色分量
弹出注释's 背景颜色的蓝色分量
Blue
Options
保留供将来使用,应始终设为 0
返回值
| 0 | 无法将图章注释添加到页面 |
|---|---|
| 1 | 成功 int Options); |