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

NameTypeAccessDescription
paper_size-Read/WritePaper size (1=Letter, 9=A4, etc.).
scale-Read/WritePrint scaling (10-400).
first_page_number-Read/WriteFirst page number.
fit_to_width-Read/WriteFit to width pages (0 = use scale).
fit_to_height-Read/WriteFit to height pages (0 = use scale).
page_order-Read/WritePage order: ‘downThenOver’ or ‘overThenDown’.
orientation-Read/WritePage orientation: ‘portrait’ or ’landscape’.
use_printer_defaults-Read/WriteWhether to use printer defaults.
black_and_white-Read/WriteWhether to print in black and white.
draft-Read/WriteWhether to print in draft quality.
copies-Read/WriteNumber of copies.
cell_comments-Read/WritePrint cell comments: ’none’, ‘atEnd’, or ‘asDisplayed’.
errors-Read/WritePrint errors: ‘displayed’, ‘blank’, ‘dash’, or ‘NA’.
horizontal_dpi-Read/WriteHorizontal DPI for printing.
vertical_dpi-Read/WriteVertical DPI for printing.
use_first_page_number-Read/WriteWhether to use the first page number.
fit_to_page-Read/WriteWhether to fit to page (True if fit_to_width or fit_to_height is set).
print_title_rows-Read/WriteRows repeated at the top of each printed page, such as 1:3.
print_title_columns-Read/WriteColumns repeated at the left of each printed page, such as A:C.

Methods

SignatureDescription
__init__()Calls init on this PageSetup instance.

See Also

 English