Skip to content

eps Portrait to pdf now rotated since gs6.5 --- why?

3 messages · Marcus Eger, Brian Ripley

#
Hi list,
this question has probably been answered but I haven't found
a solution in the archives:
The older ghostscript gs5.50 (debian,stable) deals well with R-plots:
epstopdf yields pdfs with the same orientation as the eps-file.
But, since gs6.5 (or earlier) the dimension of the plot is interpreted: if 
x-width exceeds y-width even a Portrait-eps is rotated to Landscape.

A possible solution is to adjust the Orientation-Flag at eps-generation in R. 
Any ideas?
Thanks
 	Marcus
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 5 Feb 2002, Marcus Eger wrote:

            
Are you following the advice in ?postscript and elsewhere?  That is to
produce portrait plots, and I have never seen a problem converting with gs
(currently 7.03).

However, R has long had a pdf device, so if you want pdf, why not generate
it in R?
#
I have now managed to trigger this.  The solution is to remove the
%%Orientation comment in the .eps.  *However*, according to the
PostScript Language Reference Manual this is to be used by viewers to set
the window orientation, so gs is not following the DSC guidelines.  It
seems only to use it for pdf and not say png conversion.

I'll remove that comment when producing eps from postscript(), as it also
affects bitmap().

[Marcus: mail to gmx.de is bouncing today.]
On Tue, 5 Feb 2002, Prof Brian D Ripley wrote: