A section with landscape orientation is added to the document.

body_end_section_landscape(x, w = 21/2.54, h = 29.7/2.54)

Arguments

x

an rdocx object

w, h

page width, page height (in inches)

Examples

str1 <- "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
str1 <- rep(str1, 5)
str1 <- paste(str1, collapse = " ")

doc_1 <- read_docx()
doc_1 <- body_add_par(doc_1, value = str1, style = "Normal")
doc_1 <- body_end_section_landscape(doc_1)

print(doc_1, target = tempfile(fileext = ".docx"))