PdfUriAction Class
Represents an action which resolves unique resource identifier.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfUriAction : PdfAction, IPdfWrapper
Remarks
This PdfUriAction class is used to create the hyper link in PDF document. Please refer the UG docuemntation link https://help.syncfusion.com/file-formats/pdf/working-with-action#uri-action for more details.
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)
Constructors
PdfUriAction()
Initializes a new instance of the PdfUriAction class.
Declaration
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.
Declaration
public PdfUriAction(string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | 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("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.
Declaration
public string Uri { get; set; }
Property Value
Type | Description |
---|---|
System.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.
Declaration
protected override void Initialize()