**Inheritance:**
java.lang.Object, com.aspose.pdf.PageSize

```
public final class PageSize extends Object
```

Class representing size of page in PDF document.

## Fields

| Field | Description |
| --- | --- |
| [LEAVE_INTACT](#LEAVE_INTACT) | For internal usage only |

## Constructors

| Constructor | Description |
| --- | --- |
| [PageSize](#PageSize-float-float-) | Constructor for PageSize. |

## Methods

| Method | Description |
| --- | --- |
| [getA0](#getA0--) | A0 size (1189x840 mm). |
| [getA1](#getA1--) | A1 size (840x594 mm). |
| [getA2](#getA2--) | A2 size (594x420 mm). |
| [getA3](#getA3--) | A3 size (420x297 mm). |
| [getA4](#getA4--) | A4 size (297x210 mm). |
| [getA5](#getA5--) | A5 size (210x148 mm). |
| [getA6](#getA6--) | A6 size (148x105 mm). |
| [getB5](#getB5--) | B5 size (250x176 mm). |
| [getHeight](#getHeight--) | Gets page height. |
| [getP11x17](#getP11x17--) | 11x17 inches format. |
| [getPageLedger](#getPageLedger--) | Ledger size (432x279 mm). |
| [getPageLegal](#getPageLegal--) | Legal size (356x216 mm). |
| [getPageLetter](#getPageLetter--) | Letter size (279x216 mm). |
| [getWidth](#getWidth--) | Gets page width. |
| [isLandscape](#isLandscape--) | Gets page orientation. Returns true of this is landscape orientation and false if this is portrait. |
| [setHeight](#setHeight-float-) | Sets page height. |
| [setLandscape](#setLandscape-boolean-) | Sets page orientation. Returns true of this is landscape orientation and false if this is portrait. |
| [setWidth](#setWidth-float-) | Sets page width. |

### LEAVE_INTACT {#LEAVE_INTACT}
```
public static final float LEAVE_INTACT
```

For internal usage only

### PageSize {#PageSize-float-float-}
```
public PageSize(float x, float y)
```

Constructor for PageSize.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| x |  | Width of the page. |
| y |  | Height of the page. |

### getA0 {#getA0--}
```
public static PageSize getA0()
```

A0 size (1189x840 mm).

**Returns:**
PageSize object

### getA1 {#getA1--}
```
public static PageSize getA1()
```

A1 size (840x594 mm).

**Returns:**
PageSize object

### getA2 {#getA2--}
```
public static PageSize getA2()
```

A2 size (594x420 mm).

**Returns:**
PageSize object

### getA3 {#getA3--}
```
public static PageSize getA3()
```

A3 size (420x297 mm).

**Returns:**
PageSize object

### getA4 {#getA4--}
```
public static PageSize getA4()
```

A4 size (297x210 mm).

**Returns:**
PageSize object

### getA5 {#getA5--}
```
public static PageSize getA5()
```

A5 size (210x148 mm).

**Returns:**
PageSize object

### getA6 {#getA6--}
```
public static PageSize getA6()
```

A6 size (148x105 mm).

**Returns:**
PageSize object

### getB5 {#getB5--}
```
public static PageSize getB5()
```

B5 size (250x176 mm).

**Returns:**
PageSize object

### getHeight {#getHeight--}
```
public float getHeight()
```

Gets page height.

**Returns:**
page height.

### getP11x17 {#getP11x17--}
```
public static PageSize getP11x17()
```

11x17 inches format.

**Returns:**
PageSize object

### getPageLedger {#getPageLedger--}
```
public static PageSize getPageLedger()
```

Ledger size (432x279 mm).

**Returns:**
PageSize object

### getPageLegal {#getPageLegal--}
```
public static PageSize getPageLegal()
```

Legal size (356x216 mm).

**Returns:**
PageSize object

### getPageLetter {#getPageLetter--}
```
public static PageSize getPageLetter()
```

Letter size (279x216 mm).

**Returns:**
PageSize object

### getWidth {#getWidth--}
```
public float getWidth()
```

Gets page width.

**Returns:**
page width.

### isLandscape {#isLandscape--}
```
public boolean isLandscape()
```

Gets page orientation. Returns true of this is landscape orientation and false if this is portrait.

**Returns:**
boolean value

### setHeight {#setHeight-float-}
```
public void setHeight(float value)
```

Sets page height.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | page height. |

### setLandscape {#setLandscape-boolean-}
```
public void setLandscape(boolean value)
```

Sets page orientation. Returns true of this is landscape orientation and false if this is portrait.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | boolean value |

### setWidth {#setWidth-float-}
```
public void setWidth(float value)
```

Sets page width.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | page width. |
