Am 23.02.2009 um 18:04 schrieb John Devereux:
Wolfgang Schuster
writes: Am 22.02.2009 um 16:00 schrieb John Devereux:
I would like to use texexec to post-process a large pdf file, so as to prepare it for double sided printing. The existing file has a large left hand "margin" on each page, so as to allow binding.
I would like to change this so that odd (right) pages have a large left margin, and even (left) pages a large right margin.
\setuppagenumbering[alternative=doublesided] \setuplayout[horoffset=1cm] \setuplayout[page] \starttext \copypages[document] \stoptext
Thanks, that's great!
Is there an easy way to compensate for the original offset? The original pdf has a large left margin and a small right one.
Replace 'page' with the name of your document. \setuplayout[page] \starttext \getfiguredimensions[pages] \dorecurse\noffigurepages {\hbox to \textwidth {\ifodd\recurselevel \hskip-2cm\externalfigure[pages][page=\recurselevel]\hss \else \hskip-1cm\externalfigure[pages][page=\recurselevel]\hss \fi}} \stoptext Wolfgang