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

# PageSetup

## Overview

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

Represents page setup settings.

This class declares 1 method for PageSetup 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: `black_and_white`, `cell_comments`, `copies`, `draft`, `errors`, `first_page_number`, and 13 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `paper_size` | - | Read/Write | Paper size (1=Letter, 9=A4, etc.). |
| `scale` | - | Read/Write | Print scaling (10-400). |
| `first_page_number` | - | Read/Write | First page number. |
| `fit_to_width` | - | Read/Write | Fit to width pages (0 = use scale). |
| `fit_to_height` | - | Read/Write | Fit to height pages (0 = use scale). |
| `page_order` | - | Read/Write | Page order: 'downThenOver' or 'overThenDown'. |
| `orientation` | - | Read/Write | Page orientation: 'portrait' or 'landscape'. |
| `use_printer_defaults` | - | Read/Write | Whether to use printer defaults. |
| `black_and_white` | - | Read/Write | Whether to print in black and white. |
| `draft` | - | Read/Write | Whether to print in draft quality. |
| `copies` | - | Read/Write | Number of copies. |
| `cell_comments` | - | Read/Write | Print cell comments: 'none', 'atEnd', or 'asDisplayed'. |
| `errors` | - | Read/Write | Print errors: 'displayed', 'blank', 'dash', or 'NA'. |
| `horizontal_dpi` | - | Read/Write | Horizontal DPI for printing. |
| `vertical_dpi` | - | Read/Write | Vertical DPI for printing. |
| `use_first_page_number` | - | Read/Write | Whether to use the first page number. |
| `fit_to_page` | - | Read/Write | Whether to fit to page (True if fit_to_width or fit_to_height is set). |
| `print_title_rows` | - | Read/Write | Rows repeated at the top of each printed page, such as ``1:3``. |
| `print_title_columns` | - | Read/Write | Columns repeated at the left of each printed page, such as ``A:C``. |

## Methods

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

## See Also

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