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

The annotation type:

0 = Note

1 = Comment

2 = Help

3 = Insert

4 = Key

5 = New paragraph

6 = Paragraph

在任何上述值加上 100,可隱藏彈出式註解標題中顯示的日期

AnnotType

PopupLeft

彈出視窗左緣的水平座標

PopupTop

彈出視窗左緣的垂直座標

PopupWidth

彈出視窗的寬度

PopupHeight

彈出視窗的高度

Title

註解的標題

Contents

彈出式註解的內文

Red

註解顏色的紅色成分

Green

註解顏色的綠色成分

Blue

註解顏色的藍色成分

Open

指定文件開啟時是否顯示註解:

0 = hide

1 = show

double PopupWidth, double PopupHeight, wchar_t * Title, wchar_t * Contents, double Red, double Green, double Blue, int Open);