Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

PdfPageSize

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
e163ccb36643 with working tree changes
Base
ValueType
Modifiers
sealed

Represents a physical PDF page size.

Inheritance

  • ValueType
  • PdfPageSize

Usage

Explore 45 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.

Accepted by parameters 6

Constructors

public PdfPageSize(OfficeLength width, OfficeLength height) #

Creates a page size with explicit units.

Parameters

width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required

Methods

public PdfPageSize Landscape() #

Returns this size in landscape orientation.

public PdfPageSize Portrait() #

Returns this size in portrait orientation.

public PdfPageSize WithOrientation(OfficePageOrientation orientation) #

Returns this size in the requested orientation.

Parameters

orientation OfficeIMO.OfficePageOrientation required

Properties

public OfficeLength Width { get; } #

Page width.

public OfficeLength Height { get; } #

Page height.