API Reference

Struct

PageSize

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Base ValueType
Modifiers sealed

Represents a page size in points.

Inheritance

  • ValueType
  • PageSize

Usage

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

Accepted by parameters

Constructors

public PageSize(Double width, Double height) #

Creates a new page size.

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1

Methods

public static PageSize FromCentimeters(Double width, Double height) #
Returns: PageSize

Creates a page size from dimensions in centimeters.

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1
public static PageSize FromInches(Double width, Double height) #
Returns: PageSize

Creates a page size from dimensions in inches.

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1
public PageSize Landscape() #
Returns: PageSize

Returns this size in landscape orientation.

public PageSize Portrait() #
Returns: PageSize

Returns this size in portrait orientation.

public PageSize WithOrientation(PdfPageOrientation orientation) #
Returns: PageSize

Returns this size in the requested orientation.

Parameters

orientation OfficeIMO.Pdf.PdfPageOrientation requiredposition: 0

Properties

public Double Width { get; } #

Width in points.

public Double Height { get; } #

Height in points.