menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfUriAction - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfUriAction

    Represents an action which resolves unique resource identifier.

    Inheritance
    System.Object
    PdfAction
    PdfUriAction
    Inherited Members
    PdfAction.Next
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Portable.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
    PdfDocument
    PdfActionCollection

    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
    PdfDocument
    PdfActionCollection

    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
    PdfDocument
    PdfActionCollection

    Methods

    Initialize()

    Initializes instance.

    Declaration
    protected override void Initialize()
    Overrides
    PdfAction.Initialize()

    See Also

    PdfDocument
    PdfActionCollection
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved