PageSetup
Overview
PageSetup is a class in Aspose.Cells FOSS for Python.
Represents page setup settings.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
paper_size | `` | Read | Paper size (1=Letter, 9=A4, etc.). |
scale | `` | Read | Print scaling (10-400). |
first_page_number | `` | Read | First page number. |
fit_to_width | `` | Read | Fit to width pages (0 = use scale). |
fit_to_height | `` | Read | Fit to height pages (0 = use scale). |
page_order | `` | Read | Page order: ‘downThenOver’ or ‘overThenDown’. |
orientation | `` | Read | Page orientation: ‘portrait’ or ’landscape’. |
use_printer_defaults | `` | Read | Whether to use printer defaults. |
black_and_white | `` | Read | Whether to print in black and white. |
draft | `` | Read | Whether to print in draft quality. |
copies | `` | Read | Number of copies. |
cell_comments | `` | Read | Print cell comments: ’none’, ‘atEnd’, or ‘asDisplayed’. |
errors | `` | Read | Print errors: ‘displayed’, ‘blank’, ‘dash’, or ‘NA’. |
horizontal_dpi | `` | Read | Horizontal DPI for printing. |
vertical_dpi | `` | Read | Vertical DPI for printing. |
use_first_page_number | `` | Read | Whether to use the first page number. |
fit_to_page | `` | Read | Whether to fit to page (True if fit_to_width or fit_to_height is set). |
Methods
| Signature | Description |
|---|---|
__init__() |