body_end_section_portrait: Add portrait section

View source: R/docx_section.R

body_end_section_portraitR Documentation

Add portrait section

Description

A section with portrait orientation is added to the document.

Usage

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

Arguments

x

an rdocx object

w, h

page width, page height (in inches)

See Also

Other functions for Word sections: body_end_block_section(), body_end_section_columns_landscape(), body_end_section_columns(), body_end_section_continuous(), body_end_section_landscape(), body_set_default_section()

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_portrait(doc_1)
doc_1 <- body_add_par(doc_1, value = str1, style = "Normal")
print(doc_1, target = tempfile(fileext = ".docx"))

officer documentation built on Oct. 22, 2023, 5:06 p.m.