# PdfOpenActionOptions

Defines the initial destination a PDF viewer should open when displaying a generated document.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfOpenActionOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L9)

**Modifiers**

sealed

Defines the initial destination a PDF viewer should open when displaying a generated document.

## Inheritance

- object
- PdfOpenActionOptions

## Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [PdfCreateOptions.OpenAction](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-openaction)

Filter members 

Show inherited

## Constructors

`public PdfOpenActionOptions(int pageNumber = 1, double? destinationTop = null, PdfOpenActionDestinationMode destinationMode = Xyz, double? destinationLeft = null, double? destinationBottom = null, double? destinationRight = null)` [#](#constructor-ctor-int32-nullable-system-double-officeimo-pdf-pdfopenactiondestinationmode-nullable-system-double-nullable-system-double-nullable-system-double)

[PdfOpenActionOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L9)

Creates a generated document open action targeting a one-based page number.

Parameters

**pageNumber int = 1 optional**

**destinationTop double? = null optional**

**destinationMode OfficeIMO.Pdf.PdfOpenActionDestinationMode = Xyz optional**

**destinationLeft double? = null optional**

**destinationBottom double? = null optional**

**destinationRight double? = null optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int PageNumber { get; }` [#](#property-pagenumber)

[PdfOpenActionOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L45)

One-based generated page number to show when the document opens.

`public double? DestinationTop { get; }` [#](#property-destinationtop)

[PdfOpenActionOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L48)

Optional top coordinate for the destination. When omitted, the generated page top is used.

`public double? DestinationLeft { get; }` [#](#property-destinationleft)

[PdfOpenActionOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L51)

Optional left coordinate for destination modes that use a left or rectangle coordinate.

`public double? DestinationBottom { get; }` [#](#property-destinationbottom)

[PdfOpenActionOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L54)

Optional bottom coordinate for rectangle destinations.

`public double? DestinationRight { get; }` [#](#property-destinationright)

[PdfOpenActionOptions.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L57)

Optional right coordinate for rectangle destinations.

`public PdfOpenActionDestinationMode DestinationMode { get; }` [#](#property-destinationmode)

[PdfOpenActionOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfOpenActionOptions.cs#L60)

Viewer destination mode emitted for the open action.

<!-- PowerForge markdown artifact sha256:333D9F12ECF96A331464AC03587BB718486DB12DA7AE0520266D62A11AA81731 -->
