Wrapper to help create a PDFDocument object

pdf_doc(..., width = 400, height = 400, fontname = "Helvetica", version = 1.2)

Arguments

...

PDF objects

width, height

document dimensions. Default 400x400

fontname

default: Helvetica. Choose one of the standard PDF fonts: Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Symbol, ZapfDingbats

version

Default: 1.2. Doesn't do anything other than set the string at the beginning of the PDF document.

Value

PDFDocument R6 object