Class PdfUriAction
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents an action which resolves unique resource identifier.
public class PdfUriAction : PdfAction
- Inheritance
-
PdfUriAction
- Inherited Members
Examples
//Create a new document with PDF/A standard.
PdfDocument document = new PdfDocument();
//Create a Uri action
PdfUriAction uriAction = new PdfUriAction("http://www.google.com");
//Add the action to the document
document.Actions.AfterOpen = uriAction;
//Save and close the PDF document
document.Save("Output.pdf");
document.Close(true);
'Create a new document with PDF/A standard.
Dim document As New PdfDocument()
'Create a Uri action
Dim uriAction As New PdfUriAction("http://www.google.com")
'Add the action to the document
document.Actions.AfterOpen = uriAction
'Save and close the PDF document
document.Save("Output.pdf")
document.Close(True)
Remarks
This PdfUriAction class is used to create the hyper link in PDF document. Please refer the UG docuemntation link
Constructors
PdfUriAction()
Initializes a new instance of the PdfUriAction class.
public PdfUriAction()
Examples
//Create a new document with PDF/A standard.
PdfDocument document = new PdfDocument();
//Create a Uri action
PdfUriAction uriAction = new PdfUriAction();
//Add the action to the document
document.Actions.AfterOpen = uriAction;
//Save and close the PDF document
document.Save("Output.pdf");
document.Close(true);
'Create a new document with PDF/A standard.
Dim document As New PdfDocument()
'Create a Uri action
Dim uriAction As New PdfUriAction()
'Add the action to the document
document.Actions.AfterOpen = uriAction
'Save and close the PDF document
document.Save("Output.pdf")
document.Close(True)
- See Also
PdfUriAction(string)
Initializes a new instance of the PdfUriAction class.
public PdfUriAction(string uri)
Parameters
uri
stringThe unique resource identifier.
Examples
//Create a new document with PDF/A standard.
PdfDocument document = new PdfDocument();
//Create a Uri action
PdfUriAction uriAction = new PdfUriAction("http://www.google.com");
//Add the action to the document
document.Actions.AfterOpen = uriAction;
//Save and close the PDF document
document.Save("Output.pdf");
document.Close(true);
'Create a new document with PDF/A standard.
Dim document As New PdfDocument()
'Create a Uri action
Dim uriAction As New PdfUriAction("http://www.google.com")
'Add the action to the document
document.Actions.AfterOpen = uriAction
'Save and close the PDF document
document.Save("Output.pdf")
document.Close(True)
- See Also
Properties
Uri
Gets or sets the unique resource identifier.
public string Uri { get; set; }
Property Value
- string
The unique resource identifier.
Examples
//Create a new document with PDF/A standard.
PdfDocument document = new PdfDocument();
//Create a Uri action
PdfUriAction uriAction = new PdfUriAction();
uriAction.Uri="http://www.google.com";
//Add the action to the document
document.Actions.AfterOpen = uriAction;
//Save and close the PDF document
document.Save("Output.pdf");
document.Close(true);
'Create a new document with PDF/A standard.
Dim document As New PdfDocument()
'Create a Uri action
Dim uriAction As New PdfUriAction()
uriAction.Uri="http://www.google.com";
'Add the action to the document
document.Actions.AfterOpen = uriAction
'Save and close the PDF document
document.Save("Output.pdf")
document.Close(True)
- See Also
Methods
Initialize()
Initializes instance.
protected override void Initialize()
- See Also