---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/pageformat
---

# PageFormat

## Overview

`PageFormat` is a type in Aspose.PDF FOSS for Go.

PageFormat describes a page size in points (1/72 inch).

This type declares 1 method for PageFormat objects in Go programs.
Available methods include: `Landscape`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Properties: `Height`, `Width`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Width` | `float64` | Read/Write | Gets the width. |
| `Height` | `float64` | Read/Write | Gets the height. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Landscape()` → `PageFormat` | Landscape returns the format with width and height swapped. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)