Click or drag to resize
Pdf Library for .NET

PdfActionGoTo Class

An action that navigates to a destination within the same document (for example, as the document open action so a viewer jumps to a specific page and zoom on open).
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfAction
    SelectPdf.UniversalPdfActionGoTo

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfActionGoTo : PdfAction

The PdfActionGoTo type exposes the following members.

Constructors
 NameDescription
Public methodPdfActionGoTo Initializes a new instance of the PdfActionGoTo class targeting the given destination.
Top
Properties
 NameDescription
Public propertyDestination Gets or sets the pdf destination of the Go To action.
Top
Example
PdfDocument document = new PdfDocument();
PdfPage page = document.AddPage();
PdfActionGoTo action = new PdfActionGoTo(new PdfDestination(page, 0, 0));
document.OpenAction.Action = action;
document.Save("out.pdf");
document.Close();
See Also