This function can only be used inside set_page_style.
Arguments
- size
Page size: "A4", "A3", "Letter", "Legal", "Executive"
- orientation
Page orientation: "portrait" or "landscape"
- margins
Margins object created with
p_marginsor a list with keys: top, bottom, left, right, header, footer
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"
)
)
)
} # }