page_size: Page size object

View source: R/ooxml_run_objects.R

page_sizeR Documentation

Page size object

Description

The function creates a representation of the dimensions of a page. The dimensions are defined by length, width and orientation. If the orientation is in landscape mode then the length becomes the width and the width becomes the length.

Usage

page_size(
  width = 21/2.54,
  height = 29.7/2.54,
  orient = "portrait",
  unit = "in"
)

Arguments

width, height

page width, page height (in inches).

orient

page orientation, either 'landscape', either 'portrait'.

unit

unit for width and height, one of "in", "cm", "mm".

See Also

Other functions for section definition: page_mar(), prop_section(), section_columns()

Examples

page_size(orient = "landscape")

officer documentation built on Oct. 10, 2024, 1:06 a.m.