Table of Contents

Enum PdfFilePathType

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the file path type.

public enum PdfFilePathType

Fields

Absolute = 1

Specifies the location, including the domain name.

Relative = 0

Specifies the file location with out including the domain name.

Examples

//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Create a new PdfButtonField.
PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
//Set the bounds to submitButton.
submitButton.Bounds = new RectangleF(25, 160, 100, 20);
//Set the submit button text.
submitButton.Text = "Launch";
//Create a new PdfLaunchAction and set the PdfFilePathType.
PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt",PdfFilePathType.Absolute);
//Set the actions to submit button.
submitButton.Actions.GotFocus = launchAction;
//Save document to disk.
document.Save("ActionDestination.pdf");
document.Close(true);
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Create a new PdfButtonField.
Dim submitButton As PdfButtonField  = New PdfButtonField(page, "submitButton")
'Set the bounds to submit button.
submitButton.Bounds = New RectangleF(25, 160, 100, 20)
'Set the submit button text.
submitButton.Text = "Launch"
'Create a new PdfLaunchAction and set the PdfFilePathType.
Dim launchAction As PdfLaunchAction  = new PdfLaunchAction(@"..\..\Data\Sample.txt",PdfFilePathType.Absolute)
'Set the actions to submit button.
submitButton.Actions.GotFocus = launchAction
'Save document to disk.
document.Save("ActionDestination.pdf")
document.Close(True)