pdf.options
can be used to set or view
(if called without arguments) the default values for some of the
arguments to pdf
. pdf.options
needs to be called before calling pdf
,
and the default values it sets can be overridden by supplying
arguments to pdf
.pdf.options(…, reset = FALSE)
width
, height
, onefile
,
family
, title
, fonts
, paper
,
encoding
, pointsize
, bg
, fg
,
pagecentre
, useDingbats
, colormodel
,
fillOddEven
and compress
can be supplied.reset = TRUE
and ...
are supplied the defaults
are first reset to the ‘factory-fresh’ values and then the new
values are applied.pdf
, ps.options
.pdf.options(bg = "pink")
utils::str(pdf.options())
pdf.options(reset = TRUE) # back to factory-fresh
Run the code above in your browser using DataLab