Expand description
Page layout settings for worksheets.
Provides functions for configuring page margins, page setup (paper size, orientation, scaling), header/footer, print options, and page breaks.
Structs§
- Page
Margins Config - Page margin configuration in inches.
Enums§
- Orientation
- Page orientation.
- Paper
Size - Standard paper sizes. The numeric values follow the OOXML specification.
Constants§
- DEFAULT_
MARGIN_ BOTTOM - Default bottom margin in inches.
- DEFAULT_
MARGIN_ FOOTER - Default footer margin in inches.
- DEFAULT_
MARGIN_ HEADER - Default header margin in inches.
- DEFAULT_
MARGIN_ LEFT - Default left margin in inches.
- DEFAULT_
MARGIN_ RIGHT - Default right margin in inches.
- DEFAULT_
MARGIN_ TOP - Default top margin in inches.
Functions§
- get_
fit_ to_ height - Get the current fit-to-height value, if set.
- get_
fit_ to_ width - Get the current fit-to-width value, if set.
- get_
header_ footer - Get the header and footer text.
- get_
orientation - Get the current orientation, if set.
- get_
page_ breaks - Get all row page break positions (1-based row numbers).
- get_
page_ margins - Get page margins from a worksheet, returning defaults if not set.
- get_
paper_ size - Get the current paper size, if set.
- get_
print_ options - Get print options from a worksheet.
- get_
scale - Get the current scale, if set.
- insert_
page_ break - Insert a horizontal page break before the given 1-based row number.
- remove_
page_ break - Remove a horizontal page break at the given 1-based row number.
- set_
header_ footer - Set header and footer text for printing.
- set_
page_ margins - Set page margins on a worksheet.
- set_
page_ setup - Set page setup options on a worksheet.
- set_
print_ options - Set print options on a worksheet.