AddLinkToFileDest

註解與熱點連結

描述

在所選具名目的地加入可點擊的熱點矩形,連到另一份 PDF 文件的特定頁面與位置

要變更熱點框線顏色,請用 SetAnnotBorderColor 函式。

語法

Delphi

Function TPDFlib.AddLinkToFileDest(Left, Top, Width, Height: Double; Const FileName: WideString; NamedDest: WideString; Position: Double; NewWindow, Options: Integer): Integer;

ActiveX

Function PDFlib::AddLinkToFileDest(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, NamedDest As String, Position As Double, NewWindow As Long, Options As Long) As Long

DLL

int DLAddLinkToFileDest(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * FileName, const wchar_t * NamedDest, double Position, int NewWindow, int Options);

參數

Left

熱點矩形左緣的水平座標

Top

熱點矩形上緣的垂直座標

Width

熱點矩形的寬度

Height

熱點矩形的高度

要連結的 PDF 文件路徑與檔名

FileName

NamedDest

目的地文件中要連結的具名目的地字串

Position

目的地頁面上要連結位置的垂直座標

NewWindow

0 = 關閉目前文件,然後開啟新文件

1 = 在新視窗開啟目前文件

Options

指定連結的外觀:

0 = No border

1 = Draw a border