Skip to content

# PDFViewport

Namespace: O2S.Components.PDF4NET.Spatial

Defines a rectangular region of a page that supports a different measurement scale.

    public class PDFViewport

Inheritance Object → PDFViewport

## Constructors

### PDFViewport()

Initializes a new PDFViewport object.

    public PDFViewport()

## Properties

### Bounds

Gets or sets the viewport bounds.

    public PDFStandardRectangle Bounds { get; set; }

Property Value

PDFStandardRectangle
A PDFStandardRectangle that defines the viewport area.

Remarks

The lower left and upper right corners of the rectangle determine the orientation of the measuring coordinate system (that is, the direction of the positive x and yaxes) in this viewport, which may have a different rotation from the page.
The viewport bounds are defined in the same coordinate system like the page media box and crop box.

### Measure

Gets or sets the viewport measure.

    public PDFMeasure Measure { get; set; }

Property Value

PDFMeasure
The viewport measure.

Remarks

The measure specifies the alternative coordinate system for the viewport. It provides the information needed to convert coordinates in the page's coordinate system to coordinates in the measuring coordinate system.

### Name

Gets or sets the viewport name.

    public string Name { get; set; }

Property Value

String
The name of the viewport to be displayed in the user interface.

### PointData

Gets or sets the point data.

    public PDFPointData PointData { get; set; }

Property Value

PDFPointData
The point data that specifies extended geospatial data.