Skip to content

# PDFPageNumberDestination

Namespace: O2S.Components.PDF4NET.Destinations

Defines a destination to a PDF page identified by its page number.

    public class PDFPageNumberDestination : PDFPageDestination

Inheritance Object → PDFDestination → PDFPageDestination → PDFPageNumberDestination

Remarks

The destination page can be located in the current document or in a remote document.

## Constructors

### PDFPageNumberDestination()

Initializes a new PDFPageNumberDestination object.

    public PDFPageNumberDestination()

## Properties

### Bottom

Gets or sets the bottom coordinate.

    public double Bottom { get; set; }

Property Value

Double
Bottom coordinate of the page positioned at the bottom edge of the window.

Remarks

The bottom coordinate is used by PDFDestinationZoomMode.FitR zoom mode.

### Left

Gets or sets the left coordinate.

    public double Left { get; set; }

Property Value

Double
Left coordinate of the page positioned at the left edge of the window.

Remarks

These zoom modes use the left coordinate: PDFDestinationZoomMode.XYZ, PDFDestinationZoomMode.FitV, PDFDestinationZoomMode.FitR, PDFDestinationZoomMode.FitBV

### PageNumber

Gets or sets the page number.

    public int PageNumber { get; set; }

Property Value

Int32
The number identifying the PDF page in the document.

Exceptions

ArgumentOutOfRangeException
Thrown when the value is less than 0.

Remarks

First page in the document is 0.

### Right

Gets or sets the right coordinate.

    public double Right { get; set; }

Property Value

Double
Right coordinate of the page positioned at the right edge of the window.

Remarks

The right coordinate is used by PDFDestinationZoomMode.FitR zoom mode.

### Top

Gets or sets the top coordinate.

    public double Top { get; set; }

Property Value

Double
Top coordinate of the page positioned at the top edge of the window.

Remarks

These zoom modes use the top coordinate: PDFDestinationZoomMode.XYZ, PDFDestinationZoomMode.FitH, PDFDestinationZoomMode.FitR, PDFDestinationZoomMode.FitBH

### Type

Gets the destination type.

    public PDFDestinationType Type { get; }

Property Value

PDFDestinationType
A PDFDestinationType that represents the type of the destination.

### Zoom

Gets or sets the zoom.

    public double Zoom { get; set; }

Property Value

Double
Zoom value (percentage) applied to destination page.

Remarks

A 0 zoom means the current zoom value does not change.

### ZoomMode

Gets or sets the zoom mode.

    public PDFDestinationZoomMode ZoomMode { get; set; }

Property Value

PDFDestinationZoomMode
A PDFDestinationZoomMode that represents how the destination page is zoomed when the destination is executed.