'Declaration
Public Property PdfEnableFileLinks As Boolean
public bool PdfEnableFileLinks {get; set;}
public read-write property PdfEnableFileLinks: Boolean;
public function get,set PdfEnableFileLinks : boolean
PDF documents are often designed to contain links to other files. Such an option is provided through a GoToR action handled by particular objects such as bookmarks or file links. Setting this property to true allows users to navigate to the linked file. Turning this property to false will disable this behaviour.
The PdfFileNavigation event is raised before displaying the linked file.
'Declaration
Public Property PdfEnableFileLinks As Boolean
public bool PdfEnableFileLinks {get; set;}
public read-write property PdfEnableFileLinks: Boolean;
public function get,set PdfEnableFileLinks : boolean
Just to remind you, that you can benefit from using the PdfFileNavigation event to handle linked files by your own.
'We assume that the GdViewer1 control has been properly integrated 'and the PdfFileNavigation event has been properly added. 'Enabling PDF file links handling. PdfEnableFileLinks = True 'Define the event. Sub GdViewer1_PdfFileNavigation(ByRef FilePath As String, ByRef Cancel As Boolean) Handles GdViewer1.PdfFileNavigation MessageBox.Show("The filename is: " + FilePath, "GdViewer.PdfEnableFileLinks") 'Turning this parameter to True disables automatic handling of the file by the toolkit. Cancel = True 'You can handle the file by your own here. End Sub
//We assume that the GdViewer1 control has been properly integrated //and the PdfFileNavigation event has been properly added. //Enabling PDF file links handling. PdfEnableFileLinks = true; //Define the event. void GdViewer1_PdfFileNavigation(ref string FilePath, ref bool Cancel) { MessageBox.Show("The filename is: " + FilePath, "GdViewer.PdfEnableFileLinks"); //Turning this parameter to true disables automatic handling of the file by the toolkit. Cancel = true; //You can handle the file by your own here. }