ps.options.send(defaults=lapply(ps.options(), eval), <<see below>>,
force=F)
The matrix ps.colors.rgb can be subsetted to provide a value for this argument. Also, the function ps.hsb2rgb can be used to convert colors from the HSB model to the RGB model equivalents. See the examples section below.
See the ps.paper.regions documentation for a way to discover the imageable region of your printer.
# Change the colors used by the PostScript driver
ps.options.send (colors=ps.colors.rgb[c("red", "green", "blue"),])
# Approximate colors used by current motif/openlook driver
ps.options.send (colors=xgetrgb('lines'),
background=xgetrgb('background'),
image.colors=xgetrgb('images'))
# Use existing HSB color model specifications
ps.options.send (colors=ps.hsb2rgb(my.hsb.ps.colors))
ps.options.send (colors=my.hsb.ps.colors, setcolor=ps.setcolor.hsb)
# Change the bullet character to an asterisk
ps.options.send (bullet=c("/IBu {Pch 0 (*) put SetPchSize} def",
"/Bu {Pc} def"))
# Change the bullet to a solidly filled semi-circle
ps.options.send (bullet=c("/IBu {} def",
"/Bu {currentpoint gsave newpath",
" PointSize 7 div Cex mul RastersPerPoint mul",
" 0 180 arc closepath fill grestore} def"))
# Send all of the PostScript options
ps.options.send (force=T)
# Force assumption of a color PostScript printer
ps.options.send (black.and.white="false")
# Try to force use of legal size paper
ps.options.send (paper='legal', extra.setup=c(
"%%BeginFeature: *PageSize Legal",
"legal",
"%%EndFeature"))