Skip to contents

Extracts the page layout settings configured via fr_page(). Returns a named list with all page properties: orientation, paper size, margins, font family, font size, and column gap.

Usage

fr_get_page(spec)

Arguments

spec

An fr_spec object from fr_table() or fr_listing().

Value

A named list with fields: orientation, paper, margins (list with top, bottom, left, right), font_family, font_size, col_gap.

See also

fr_page() to set page layout, fr_pagehead() and fr_pagefoot() for running headers/footers.

Examples

spec <- tbl_demog |> fr_table() |>
  fr_page(orientation = "landscape", font_size = 8)
pg <- fr_get_page(spec)
pg$orientation   # "landscape"
#> [1] "landscape"
pg$font_size     # 8
#> [1] 8
pg$margins$left  # margin in inches
#> [1] 1