Click or drag to resize
Pdf Library for .NET

PdfDocumentOpenAction Class

The action performed when the document is opened in a viewer. Accessed via OpenAction. Assign Action a PdfActionGoTo (jump to a destination) or PdfActionJavaScript (run a script).
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfDocumentOpenAction

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

The PdfDocumentOpenAction type exposes the following members.

Properties
 NameDescription
Public propertyAction Gets or sets the action performed when the document is opened. Null (default) means no open action.
Top
Example
PdfDocument document = new PdfDocument();
PdfPage page = document.AddPage();
document.OpenAction.Action = new PdfActionGoTo(new PdfDestination(page, 0, 0));
document.Save("out.pdf");
document.Close();
See Also