PageSetup

Overview

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

Represents page setup settings.

Properties

NameTypeAccessDescription
paper_size``ReadPaper size (1=Letter, 9=A4, etc.).
scale``ReadPrint scaling (10-400).
first_page_number``ReadFirst page number.
fit_to_width``ReadFit to width pages (0 = use scale).
fit_to_height``ReadFit to height pages (0 = use scale).
page_order``ReadPage order: ‘downThenOver’ or ‘overThenDown’.
orientation``ReadPage orientation: ‘portrait’ or ’landscape’.
use_printer_defaults``ReadWhether to use printer defaults.
black_and_white``ReadWhether to print in black and white.
draft``ReadWhether to print in draft quality.
copies``ReadNumber of copies.
cell_comments``ReadPrint cell comments: ’none’, ‘atEnd’, or ‘asDisplayed’.
errors``ReadPrint errors: ‘displayed’, ‘blank’, ‘dash’, or ‘NA’.
horizontal_dpi``ReadHorizontal DPI for printing.
vertical_dpi``ReadVertical DPI for printing.
use_first_page_number``ReadWhether to use the first page number.
fit_to_page``ReadWhether to fit to page (True if fit_to_width or fit_to_height is set).

Methods

SignatureDescription
__init__()

See Also