GoToRemoteAction
Overview
GoToRemoteAction is a class in Aspose.PDF FOSS for .NET.
Inherits from: PdfAction.
Go-to-remote action — jumps to a destination in a different PDF file .
This class provides 9 methods for working with GoToRemoteAction objects in .NET programs.
Available methods include: CreateGoTo, CreateJavaScript, CreateLaunch, CreateNamed, CreateUri, GetECMAScriptString, GoToRemoteAction, ToString.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Destination, File, NewWindow, Next, Type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
NewWindow | ExtendedBoolean | Read/Write | When the action should open the destination in a new viewer window. |
File | FileSpecification? | Read/Write | The target file specification (/F entry). |
Destination | Annotations.IAppointment? | Read/Write | The destination within the target file. |
Type | ActionType | Read | The action type. |
Next | Annotations.ActionCollection | Read | The /Next chain — actions that fire after this one. |
Methods
| Signature | Description |
|---|---|
GoToRemoteAction(remotePdf: string, destination: Annotations.ExplicitDestination) | Create a GoToRemote action targeting a file path with the given destination. |
GoToRemoteAction(remotePdf: string, remotePageNumber: int) | Create a GoToRemote action targeting a file path with a page/fit destination. |
GetECMAScriptString() | For JavaScript actions, returns the embedded script; otherwise an empty string. |
CreateGoTo(pageIndex: int, fitType: string) | Create a GoTo action targeting a page index with the specified fit type. |
CreateUri(uri: string) | Create a URI action that opens the specified URL. |
CreateJavaScript(script: string) | Create a JavaScript action that executes the specified script. |
CreateNamed(name: string) | Create a Named action (e.g., NextPage, PrevPage, FirstPage, LastPage). |
CreateLaunch(filePath: string) | Create a Launch action that opens the specified file. |
ToString() | Human-readable representation of this appointment target. |