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 = Approved
1 = Experimental
2 = NotApproved
3 = AsIs
4 = Expired
5 = NotForPublicRelease
6 = Confidential
7 = Final
8 = Sold
9 = Departmental
10 = ForComment
11 = TopSecret
12 = Draft
13 = ForPublicRelease
Title
快顯註解的標題
Contents
彈出式註解的內容
Red
彈出式註解背景顏色的紅色成分
Green
彈出式註解背景顏色的綠色成分
彈出式註解背景顏色的藍色成分
Blue
Options
保留供日後使用,應一律設為 0
傳回值
| 0 | 無法把印章註解加到頁面 |
|---|---|
| 1 | Success int Options); |