Document level properties set the defaults and will be used where they are
not overridden by hf_line
or table properties.
font - A string representing the font to display when it is not
specified by the table or hf_line
. Defaults to Courier New.
font_size - A numeric value representing the size of the font in
points. Defaults to 12.
margins - Inches of margins in the document as a named vector. Names
are top
, bottom
, left
, and right
. Defaults to 1
for all.
orientation - Orientation of the document. Defaults to 'landscape'. When 'portrait',
the height and width are switched while writing the document to effectively rotate the document
90 degrees. For example, if width is 11" and height is 8.5", while writing the document will have a
height of 11" and a width of 8.5". Additionally, when 'landscape', a keyword is written
to the RTF to indicate that the document is landscape. .
header_height - Height of the header where the titles and column
headers are displayed. Defaults to .5 inches.
footer_height - Height of the footer where the footnotes are displayed.
Defaults to .5 inches.
pagesize - Size of the page in inches. Defaults to 8.5(height) by
11(width). These defaults align with the default orientation of 'landscape'. When the orientation
is switched to 'portrait', the height and width will switch while the RTF document is being generated,
but the document attributes themselves will not change.
header_rows - Huxtable table only. Number of rows that are defined as
the header that will be repeated across pages. Defaults to 1. Can be set to 0 to disable repeating column headers.
ignore_cell_padding - Huxtable table only. Flag to ignore cell padding padding
that is added during RTF encoding. Minimizes the amount of space between
rows. Defaults to FALSE.
column_header_buffer - This attribute adds rows to the top or bottom of the table
column headers to pad it from the titles above or the table below.
Defaults to 0 and 0.