AddLinkToFileDest
Anotasi dan tautan area interaktif
Deskripsi
Menambahkan rectangle hotspot yang bisa diklik ke named destination terpilih, yang menuju halaman dan posisi tertentu di dokumen PDF lain
Gunakan fungsi SetAnnotBorderColor untuk mengubah warna border hotspot
Sintaks
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);
Parameter
Left
Koordinat horizontal tepi kiri rectangle hotspot
Top
Koordinat vertikal tepi atas rectangle hotspot
Width
Lebar rectangle hotspot
Height
Tinggi rectangle hotspot
Path dan nama file dokumen PDF yang menjadi target link
FileName
NamedDest
String Named Destination pada dokumen tujuan yang menjadi target link
Position
Koordinat vertikal pada halaman tujuan yang menjadi target link
NewWindow
0 = Tutup dokumen saat ini lalu buka dokumen baru
1 = Buka dokumen saat ini di window baru
Options
Menentukan tampilan link:
0 = No border
1 = Draw a border