AddLinkToFileDestA
註解與熱點連結
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 AddLinkToFileDest 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
在所選具名目的地加入可點擊的熱點矩形,連到另一份 PDF 文件的特定頁面與位置
要變更熱點框線顏色,請用 SetAnnotBorderColor 函式。
語法
Delphi
Function DLAddLinkToFileDestA(InstanceID: Integer; Left, Top, Width, Height: Double; FileName, NamedDest: PAnsiChar; Position: Double; NewWindow, Options: Integer): Integer;
DLL
int DLAddLinkToFileDestA(int InstanceID, double Left, double Top, double Width, double Height, const char * FileName, const char * 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