Table of Contents

Class PdfLaunchAction

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

Represents an action which launches an application or opens or prints a document.

public class PdfLaunchAction : PdfAction
Inheritance
PdfLaunchAction
Inherited Members

Examples

//Create a new PDF document
 PdfDocument document = new PdfDocument();
 //Create and add new launch Action to the document
 PdfLaunchAction action = new PdfLaunchAction("logo.png");
 document.Actions.AfterOpen = action;
 //Save the document
 document.Save("LaunchAction.pdf");
 document.Close(true);
'Create a new PDF document
Dim document As New PdfDocument()
'Create and add new launch Action to the document
Dim action As New PdfLaunchAction("logo.png")
document.Actions.AfterOpen = action
'Save the document
document.Save("LaunchAction.pdf")
document.Close(True)

Remarks

This PdfLaunchAction class is used to allow the external file to execute. Please refer the UG docuemntation link for more details.

Constructors

PdfLaunchAction(string)

public PdfLaunchAction(string fileName)

Parameters

fileName string

Examples

//Create a new PDF document
 PdfDocument document = new PdfDocument();
 //Create and add new launch Action to the document
 PdfLaunchAction action = new PdfLaunchAction("logo.png");
 document.Actions.AfterOpen = action;
 //Save the document
 document.Save("LaunchAction.pdf");
 document.Close(true);
'Create a new PDF document
Dim document As New PdfDocument()
'Create and add new launch Action to the document
Dim action As New PdfLaunchAction("logo.png")
document.Actions.AfterOpen = action
'Save the document
document.Save("LaunchAction.pdf")
document.Close(True)
See Also

PdfLaunchAction(string, PdfFilePathType)

public PdfLaunchAction(string fileName, PdfFilePathType path)

Parameters

fileName string
path PdfFilePathType

Examples

//Create a new PDF document
 PdfDocument document = new PdfDocument();
 //Create and add new launch Action to the document
 PdfLaunchAction action = new PdfLaunchAction("../../Data/logo.png",PdfFilePathType.Absolute);
 document.Actions.AfterOpen = action;
 //Save the document
 document.Save("LaunchAction.pdf");
 document.Close(true);
'Create a new PDF document
Dim document As New PdfDocument()
'Create and add new launch Action to the document
Dim action As New PdfLaunchAction("../../Data/logo.png",PdfFilePathType.Absolute)
document.Actions.AfterOpen = action
'Save the document
document.Save("LaunchAction.pdf")
document.Close(True)
See Also

Properties

FileName

public string FileName { get; set; }

Property Value

string

Examples

//Create a new PDF document
 PdfDocument document = new PdfDocument();
 //Create and add new launch Action to the document
 PdfLaunchAction action = new PdfLaunchAction("logo.png");
 //Get file name
 string fileName = action.FileName;
 document.Actions.AfterOpen = action;
 //Save the document
 document.Save("LaunchAction.pdf");
 document.Close(true);
'Create a new PDF document
Dim document As New PdfDocument()
'Create and add new launch Action to the document
Dim action As New PdfLaunchAction("logo.png")
'Get file name
Dim fileName As String = action.FileName
document.Actions.AfterOpen = action
'Save the document
document.Save("LaunchAction.pdf")
document.Close(True)
See Also

Methods

Initialize()

Initializes instance.

protected override void Initialize()
See Also

See Also