Skip to contents

This function can only be used inside set_page_style.

Usage

p_page(size = NULL, orientation = NULL, margins = NULL)

Arguments

size

Page size: "A4", "A3", "Letter", "Legal", "Executive"

orientation

Page orientation: "portrait" or "landscape"

margins

Margins object created with p_margins or a list with keys: top, bottom, left, right, header, footer

Value

A page specification object

Examples

if (FALSE) { # \dontrun{
spec <- create_text() |>
  set_page_style(
    docTemplate = "CRO Example_default",
    page = p_page(
      size = "A4",
      orientation = "landscape",
      margins = p_margins(
        top = "25mm", bottom = "25mm",
        left = "20mm", right = "20mm",
        header = "12mm", footer = "12mm"
      )
    )
  )
} # }