[OS X TeX] Can TeX help out here? Merging PDF with various page sizes and keeping it vector.

Gerben Wierda gerben.wierda at rna.nl
Sat Jan 14 03:06:19 CET 2012


My solution in the end looks like this:

\starttext
\page\setuppapersize[A4,portrait][A4,portrait]
\setuplayout[backspace=10mm,topspace=10mm,width=277mm,height=190mm,header=5mm,footer=1mm]
\rotate[rotation=90]{\externalfigure[foo.pdf][width=\hsize]}

\page\setuppapersize[A3,landscape][A3,landscape]
\setuplayout[backspace=10mm,topspace=10mm,width=400mm,height=277mm,header=5mm,footer=1mm]
\rotate[rotation=90]{\externalfigure[bar.pdf][width=\vsize]}

\page\setuppapersize[A3,landscape][A3,landscape]
\setuplayout[backspace=10mm,topspace=10mm,width=400mm,height=277mm,header=5mm,footer=1mm]
\externalfigure[foobar][height=\vsize]

etc. etc.


\stoptext

First page, small landscape-ish foo.pdf is rotated 90 degrees and put in an A4 portrait page, then large portrait-ish bar.pdf is rotated 90 degrees and put in an A3 landscape page and the landscape-ish foobar.pdf is put in a landscape A3. Etc. Sometimes, the limit is height=\hsize, sometimes width=\vsize, depending on the aspect of the image. And the rotated ones of course have that switched.

G


More information about the macostex-archives mailing list