Learn R Programming

rtf (version 0.4-6)

addPageBreak.RTF: Insert a page break into the RTF document optionally specifying new page settings

Description

Insert a page break into the RTF document optionally specifying new page settings.

Usage

## S3 method for class 'RTF':
addPageBreak(this, width=8.5, height=11, omi=c(1, 1, 1, 1), ...)

Arguments

this
An RTF object.
width
New page width in inches. optional.
height
New page height in inches. optional.
omi
A vector of page margins (botton, left, top, right) optional.
...
Not used.

See Also

For more information see RTF.

Examples

Run this code
rtf<-RTF("test_addPageBreak.doc",width=8.5,height=11,font.size=10,omi=c(1,1,1,1))
 addPageBreak(rtf,width=11,height=8.5,omi=c(0.5,0.5,0.5,0.5))
 done(rtf)

Run the code above in your browser using DataLab