PageSetup

Overview

PageSetup is a class in Aspose.Cells FOSS for Python.

Represents page setup settings.

This class provides 1 method for working with PageSetup objects in Python programs. Available methods include: __init__. All 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 11 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).

Methods

SignatureDescription
__init__()

See Also