AddLinkToLocalFile
Anotasi dan tautan area interaktif
Deskripsi
Menambahkan rectangle hotspot yang bisa diklik ke halaman terpilih, yang menuju file lokal
File tidak harus ada saat PDF dibuat, tetapi harus ada saat PDF dibuka agar link berfungsi
Gunakan fungsi SetAnnotBorderColor untuk mengubah warna border hotspot
Sintaks
Delphi
Function TPDFlib.AddLinkToLocalFile(Left, Top, Width, Height: Double; Const FileName: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::AddLinkToLocalFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, Options As Long) As Long
DLL
int DLAddLinkToLocalFile(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * FileName, int Options);
Parameter
| Left | Tepi kiri rectangle hotspot |
|---|---|
| Top | Tepi atas rectangle hotspot Lebar rectangle hotspot |
| Width | Tinggi dari persegi panjang hotspot |
| Height | |
| FileName | Relative path atau absolut ke file lokal |
| Options | Menentukan tampilan link dan apakah target dibuka di window baru atau window yang sama: 0 = Tanpa border, window yang sama 1 = Gambar border, window yang sama 2 = Tanpa border, window baru 3 = Gambar border, window baru |