GoToR Actions
As of Q2 2025 RadPdfProcessing provides partial support for GoToR actions. A remote go-to action is similar to an ordinary go-to action but jumps to a destination in another PDF file instead of the current file. The GoToRAction class offers the following public properties:
Property | Description |
---|---|
File | Gets or sets the remote File for the action. |
OpenInNewWindow | Gets or sets a value indicating whether to open the destination document in a new window. True if the document should be open in a new window, otherwise false. |
Destination | Gets or sets the named destination for the action. |
Currently, RadPdfProcessing provides support only for preserving the GoToR actions during import/export operations.
Remote go-to actions cannot be used with embedded files.
Adding a GoToR Action to a Document
The following example shows how to create a PDF document and add a GoToRAction to a Link annotation that opens another PDF document in a new window:
Navigating to a specific destination is not supported with the current implementation.
RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = new RadFixedPage();
document.Pages.Add(page);
Telerik.Windows.Documents.Fixed.Model.Actions.GoToRAction goToAction = new Telerik.Windows.Documents.Fixed.Model.Actions.GoToRAction()
{
OpenInNewWindow = true,
File = @"document_to_open.pdf",
};
Telerik.Windows.Documents.Fixed.Model.Annotations.Link annot = page.Annotations.AddLink(goToAction);
annot.Rect = new Rect(10, 10, 50, 50);