AddStampAnnotationA

注释和热点链接

描述

末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式,其行为与 AddStampAnnotation 相同,字符串参数使用当前 SetAnsiMode 代码页解释

向所选页面添加图章注释,颜色参数的取值范围为 0 到 1,其中 0 表示颜色的 0%,1 表示颜色的 100%,颜色仅影响弹出注释的背景色,不影响图章本身

所选文档低于 PDF 1.3 时,写入器会自动将有效 PDF 版本提升至 1.3,因为 PDF 1.3 引入了图章注释

语法

Delphi

Function DLAddStampAnnotationA(InstanceID: Integer; Left, Top, Width, Height: Double; StampType: Integer; Title, Contents: PAnsiChar; Red, Green, Blue: Double; Options: Integer): Integer;

DLL

int DLAddStampAnnotationA(int InstanceID, double Left, double Top, double Width, double Height, int StampType, const char * Title, const char * 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);