Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfOpenActionOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
9931e96ab849 with working tree changes
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

Constructors

public PdfOpenActionOptions(int pageNumber = 1, double? destinationTop = null, PdfOpenActionDestinationMode destinationMode = Xyz, double? destinationLeft = null, double? destinationBottom = null, double? destinationRight = null) #

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

Properties

public int PageNumber { get; } #

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

public double? DestinationTop { get; } #

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

public double? DestinationLeft { get; } #

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

public double? DestinationBottom { get; } #

Optional bottom coordinate for rectangle destinations.

public double? DestinationRight { get; } #

Optional right coordinate for rectangle destinations.

public PdfOpenActionDestinationMode DestinationMode { get; } #

Viewer destination mode emitted for the open action.