Skip to content

Portrait and Lanscape PDF in the one document

2 messages · Philip Rhoades, Brian Ripley

#
People,

I want to create a multi-page PDF doc and the pdf command works fine if 
I only use Portrait OR Landscape but how do I create a document that 
contains BOTH sorts of pages?  Is it possible? - I couldn't find info 
about it.

Thanks,

Phil.
#
PDF does not know about portrait/landscape: that is really an issue 
about whether the MediaBox is taller than it is wide.  pdf()'s 
arguments only set the MediaBox (and where relative to the origin the 
'ink' is placed)

Note that the orientation of the text on the page does not help: 
typically R graphs have text in both orientations.

Just use pdf() to produce files for individual pages with the overall 
sizes you want (before rotation), and combine them in your favourite 
PDF tools, e.g. Acrobat, ConTeXt, ....
On Mon, 17 Oct 2011, Philip Rhoades wrote: