---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/pagemargins
---

# PageMargins

## Overview

`PageMargins` is a class in Aspose.Cells FOSS for Python.
Inherits from: `_PropertyMapping`.

Represents page margins.

This class declares 1 method for PageMargins objects in Python programs.
Available methods include: `__init__`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `bottom`, `footer`, `header`, `left`, `right`, `top`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `left` | - | Read/Write | Left margin in inches. |
| `right` | - | Read/Write | Right margin in inches. |
| `top` | - | Read/Write | Top margin in inches. |
| `bottom` | - | Read/Write | Bottom margin in inches. |
| `header` | - | Read/Write | Header margin in inches. |
| `footer` | - | Read/Write | Footer margin in inches. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this PageMargins instance. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)