Skip to content
Prev 10738 / 63424 Next

Unpredictable EPS->PDF rotation (PR#4460)

For the record, gs 6.20 introduced

<p>
This fileset includes the first steps towards bringing the pdfwrite driver
closer to matching Acrobat Distiller 4.  Highlights:

<ul>

<li> Reimplementation of CIDFontType 0 support in C rather than 
PostScript;

<li> Parsing (but not functional implementation) of nearly all the Acrobat
Distiller 4 parameters;

<li> Implementation of AutoRotatePages and DCTEncode filtering in the PDF
writer;

<li> A PDF linearizer ("optimizer").

</ul>

and so all recent versions of gs work like Distiller, with the default for
the parameter AutoRotatePages=/PageByPage.

R's EPS used to specify portrait orientation, but at about the same time 
gs changed the interpretation of that from `don't rotate' to `width < 
height' and so would have rotated both examples, and we removed the DSC 
orientation line.

The reason the first is not rotated and the second is is that the x-axis
strings are longer in the first, and so the majority of the text on the
page is horizontal in the first but not the second (and the main
determinant for autorotation is the orientation of the text).


So, no mystery, just ghostscript working as documented.  And no R bug!
On Wed, 8 Oct 2003 Ted.Harding@nessie.mcc.ac.uk wrote: