Skip to content

paper size in postscript driver

4 messages · Trent Piepho, Brian Ripley

#
On Thu, 31 May 2001, Trent Piepho wrote:

            
(See below.)
The code you suggested adding is level-2 PostScript and does not work on
my office printer, for example.  So, yes, it would break things.  This is
why such code is the preserve of a Document Manager in the print spooling
system in Adobe's model.

R follows the recommendations of the PostScript Language Reference Manual
(Appendix G, to be precise).  Looks like StarOffice and GIMP *on your Linux
installation* do not.
1 day later
#
On Fri, 1 Jun 2001, Prof Brian D Ripley wrote:
No need to give up so quickly!

First, there could be an option for postscript level in the PS driver.  Adobe
acrobat reader, staroffice, etc. have an option like this, where you can
select level 1, 2, 3.  People who have a level 1 printer, could just select
level 1 output.

Secondly, you can use a "protected" setpagedevice call that will work on both
level 1 and level 2 printers.  It looks something like this:

/setpagedevice where { pop << /param value ...  >> setpagedevice } if

The 'where' command will return false if setpagedevice isn't defined, and thus
it setpagedevice will never get called.
It's not just those programs.  Lots of applications will output setpagedevice
commands to control paper size, duplex, etc.  It's usually the ones with more
comprehensive postscript support, that have these features.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Sat, 2 Jun 2001, Trent Piepho wrote:

            
I've never seen such a program on Solaris, which comes with a conformant
Document Manager as part of its spool system.

That other programs choose to take over the role of Document Manager is
no reason for R to do so.    These cludges are common in the Windows world,
and it is probably no coincidence that the programs you mention are
all versions of of copies of Windows programs.
#
On Sun, 3 Jun 2001, Prof Brian D Ripley wrote:
Have you checked Sun's star office under solaris?  I just checked framemaker
under solaris, and it does output paper size commands.  But I gather that this
doesn't really matter to you.

Thankfully R is open source, so I will just add it myself.  You're solaris has
a document manager, so screw you attitude isn't very helpfull.  Just one more
patch I will have to apply to new versions.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._