menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfRemoteGoToAction - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfRemoteGoToAction

    Represents an action which goes to a destination in another PDF file

    Inheritance
    System.Object
    PdfAction
    PdfRemoteGoToAction
    Implements
    IPdfWrapper
    Inherited Members
    PdfAction.IPdfWrapper.Element
    PdfAction.Next
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public class PdfRemoteGoToAction : PdfAction, IPdfWrapper
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
    //Create a new PdfButtonField
    PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
    submitButton.Bounds = new RectangleF(25, 160, 100, 20);
    submitButton.Font = font;
    submitButton.Text = "RemoteGoto";
    submitButton.BackColor = new PdfColor(181, 191, 203);
    //Create a new page and adds it as the last page of the document
    PdfPage pdfPages = document.Pages.Add();
    //Create a new RemoteDestination
    PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
    remoteDestination.RemotePageNumber = 3;
    remoteDestination.Mode = PdfDestinationMode.FitToPage;
    //Create a new PdfRemoteGoToAction
    PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
    //Set the IsNewWindow
    goToAction.IsNewWindow = true;
    //Add the goToAction
    submitButton.Actions.GotFocus = goToAction;
    //Add the submit button to a new document.
    document.Form.Fields.Add(submitButton);
    //Save document to disk.
    document.Save("RemoteGoToAction.pdf");
    document.Close(true);
     'Create a new PDF document.
     Dim document As PdfDocument = New PdfDocument
     'Create a new page
     Dim page As PdfPage = document.Pages.Add
     'Create font and font style.
     Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold)
     'Create a new PdfButtonField
     Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
     submitButton.Bounds = New RectangleF(25, 160, 100, 20)
     submitButton.Font = font
     submitButton.Text = "RemoteGoto"
     submitButton.BackColor = New PdfColor(181, 191, 203)
     'Create a new page and adds it as the last page of the document
     Dim pdfPages As PdfPage = document.Pages.Add
     'Create a new RemoteDestination
     Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination
     remoteDestination.RemotePageNumber = 3
     remoteDestination.Mode = PdfDestinationMode.FitToPage
     'Create a new PdfRemoteGoToAction
     Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination)
     'Set the IsNewWindow
     goToAction.IsNewWindow = true
     'Add the goToAction
     submitButton.Actions.GotFocus = goToAction
     'Add the submit button to a new document.
     document.Form.Fields.Add(submitButton)
     'Save document to disk.
     document.Save("RemoteGoToAction.pdf")
     document.Close(true)

    Constructors

    PdfRemoteGoToAction(String, PdfRemoteDestination)

    Initializes a new instance Remote GoTo action with remote destination and the file path in which the destination PDF is located.

    Declaration
    public PdfRemoteGoToAction(string filePath, PdfRemoteDestination remoteDestination)
    Parameters
    Type Name Description
    System.String filePath

    the file path value.

    PdfRemoteDestination remoteDestination

    The remote destination.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
    //Create a new PdfButtonField
    PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
    submitButton.Bounds = new RectangleF(25, 160, 100, 20);
    submitButton.Font = font;
    submitButton.Text = "RemoteGoto";
    submitButton.BackColor = new PdfColor(181, 191, 203);
    //Create a new page and adds it as the last page of the document
    PdfPage pdfPages = document.Pages.Add();
    //Create a new RemoteDestination
    PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
    remoteDestination.RemotePageNumber = 3;
    remoteDestination.Mode = PdfDestinationMode.FitToPage;
    //Create a new PdfRemoteGoToAction
    PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
    //Set the IsNewWindow
    goToAction.IsNewWindow = true;
    //Add the goToAction
    submitButton.Actions.GotFocus = goToAction;
    //Add the submit button to a new document.
    document.Form.Fields.Add(submitButton);
    //Save document to disk.
    document.Save("RemoteGoToAction.pdf");
    document.Close(true);
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument
    'Create a new page
    Dim page As PdfPage = document.Pages.Add
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold)
    'Create a new PdfButtonField
    Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
    submitButton.Bounds = New RectangleF(25, 160, 100, 20)
    submitButton.Font = font
    submitButton.Text = "RemoteGoto"
    submitButton.BackColor = New PdfColor(181, 191, 203)
    'Create a new page and adds it as the last page of the document
    Dim pdfPages As PdfPage = document.Pages.Add
    'Create a new RemoteDestination
    Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination
    remoteDestination.RemotePageNumber = 3
    remoteDestination.Mode = PdfDestinationMode.FitToPage
    'Create a new PdfRemoteGoToAction
    Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination)
    'Set the IsNewWindow
    goToAction.IsNewWindow = true
    'Add the goToAction
    submitButton.Actions.GotFocus = goToAction
    'Add the submit button to a new document.
    document.Form.Fields.Add(submitButton)
    'Save document to disk.
    document.Save("RemoteGoToAction.pdf")
    document.Close(true)

    Properties

    FilePath

    Gets or sets the file path in which the destination PDF is located.

    Declaration
    public string FilePath { get; set; }
    Property Value
    Type
    System.String
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
    //Create a new PdfButtonField
    PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
    submitButton.Bounds = new RectangleF(25, 160, 100, 20);
    submitButton.Font = font;
    submitButton.Text = "RemoteGoto";
    submitButton.BackColor = new PdfColor(181, 191, 203);
    //Create a new page and adds it as the last page of the document
    PdfPage pdfPages = document.Pages.Add();
    //Create a new RemoteDestination
    PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
    remoteDestination.RemotePageNumber = 3;
    remoteDestination.Mode = PdfDestinationMode.FitToPage;
    //Create a new PdfRemoteGoToAction
    PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
    //Add the goToAction
    submitButton.Actions.GotFocus = goToAction;
    //Add the submit button to a new document.
    document.Form.Fields.Add(submitButton);
    //Save document to disk.
    document.Save("RemoteGoToAction.pdf");
    document.Close(true);
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument
    'Create a new page
    Dim page As PdfPage = document.Pages.Add
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold)
    'Create a new PdfButtonField
    Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
    submitButton.Bounds = New RectangleF(25, 160, 100, 20)
    submitButton.Font = font
    submitButton.Text = "RemoteGoto"
    submitButton.BackColor = New PdfColor(181, 191, 203)
    'Create a new page and adds it as the last page of the document
    Dim pdfPages As PdfPage = document.Pages.Add
    'Create a new RemoteDestination
    Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination
    remoteDestination.RemotePageNumber = 3
    remoteDestination.Mode = PdfDestinationMode.FitToPage
    'Create a new PdfRemoteGoToAction
    Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination)
    'Add the goToAction
    submitButton.Actions.GotFocus = goToAction
    'Add the submit button to a new document.
    document.Form.Fields.Add(submitButton)
    'Save document to disk.
    document.Save("RemoteGoToAction.pdf")
    document.Close(true)

    IsNewWindow

    Gets or sets open the destination document in a new window

    Declaration
    public bool IsNewWindow { get; set; }
    Property Value
    Type
    System.Boolean
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
    //Create a new PdfButtonField
    PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
    submitButton.Bounds = new RectangleF(25, 160, 100, 20);
    submitButton.Font = font;
    submitButton.Text = "RemoteGoto";
    submitButton.BackColor = new PdfColor(181, 191, 203);
    //Create a new page and adds it as the last page of the document
    PdfPage pdfPages = document.Pages.Add();
    //Create a new RemoteDestination
    PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
    remoteDestination.RemotePageNumber = 3;
    remoteDestination.Mode = PdfDestinationMode.FitToPage;
    //Create a new PdfRemoteGoToAction
    PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
    //Set the IsNewWindow
    goToAction.IsNewWindow = true;
    //Add the goToAction
    submitButton.Actions.GotFocus = goToAction;
    //Add the submit button to a new document.
    document.Form.Fields.Add(submitButton);
    //Save document to disk.
    document.Save("RemoteGoToAction.pdf");
    document.Close(true);
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument
    'Create a new page
    Dim page As PdfPage = document.Pages.Add
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold)
    'Create a new PdfButtonField
    Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
    submitButton.Bounds = New RectangleF(25, 160, 100, 20)
    submitButton.Font = font
    submitButton.Text = "RemoteGoto"
    submitButton.BackColor = New PdfColor(181, 191, 203)
    'Create a new page and adds it as the last page of the document
    Dim pdfPages As PdfPage = document.Pages.Add
    'Create a new RemoteDestination
    Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination
    remoteDestination.RemotePageNumber = 3
    remoteDestination.Mode = PdfDestinationMode.FitToPage
    'Create a new PdfRemoteGoToAction
    Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination)
    'Set the IsNewWindow
    goToAction.IsNewWindow = true
    'Add the goToAction
    submitButton.Actions.GotFocus = goToAction
    'Add the submit button to a new document.
    document.Form.Fields.Add(submitButton)
    'Save document to disk.
    document.Save("RemoteGoToAction.pdf")
    document.Close(true)

    PdfRemoteDestination

    Gets or sets the destination to be targeted.

    Declaration
    public PdfRemoteDestination PdfRemoteDestination { get; set; }
    Property Value
    Type
    PdfRemoteDestination
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
    //Create a new PdfButtonField
    PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
    submitButton.Bounds = new RectangleF(25, 160, 100, 20);
    submitButton.Font = font;
    submitButton.Text = "RemoteGoto";
    submitButton.BackColor = new PdfColor(181, 191, 203);
    //Create a new page and adds it as the last page of the document
    PdfPage pdfPages = document.Pages.Add();
    //Create a new RemoteDestination
    PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
    remoteDestination.RemotePageNumber = 3;
    remoteDestination.Mode = PdfDestinationMode.FitToPage;
    //Create a new PdfRemoteGoToAction
    PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
    //Set the IsNewWindow
    goToAction.IsNewWindow = true;
    //Add the goToAction
    submitButton.Actions.GotFocus = goToAction;
    //Add the submit button to a new document.
    document.Form.Fields.Add(submitButton);
    //Save document to disk.
    document.Save("RemoteGoToAction.pdf");
    document.Close(true);
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument
    'Create a new page
    Dim page As PdfPage = document.Pages.Add
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold)
    'Create a new PdfButtonField
    Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
    submitButton.Bounds = New RectangleF(25, 160, 100, 20)
    submitButton.Font = font
    submitButton.Text = "RemoteGoto"
    submitButton.BackColor = New PdfColor(181, 191, 203)
    'Create a new page and adds it as the last page of the document
    Dim pdfPages As PdfPage = document.Pages.Add
    'Create a new RemoteDestination
    Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination
    remoteDestination.RemotePageNumber = 3
    remoteDestination.Mode = PdfDestinationMode.FitToPage
    'Create a new PdfRemoteGoToAction
    Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination)
    'Set the IsNewWindow
    goToAction.IsNewWindow = true
    'Add the goToAction
    submitButton.Actions.GotFocus = goToAction
    'Add the submit button to a new document.
    document.Form.Fields.Add(submitButton)
    'Save document to disk.
    document.Save("RemoteGoToAction.pdf")
    document.Close(true)

    Methods

    Initialize()

    Initializes instance.

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

    Implements

    IPdfWrapper

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved