Procházka Lukáš Ing. - Pontex s. r. o.
Would it be possible to provide a small example of such processing an arbitrary file?
Yes.
I can send a sample A2 or A1 PDF, and also a replacing A4, if necessary.
Not necessary, context can produce such files for you. Example, using positioning macros, that shows also a problem with vertical offset: --8<---------------cut here---------------start------------->8--- % Produce A2-example: \startbuffer[a2] \setuppapersize[A2] \setuplayout[page] \setupbackgrounds[page][background=color, backgroundcolor=blue] \starttext \input tufte \stoptext \stopbuffer \savebuffer[a2][a2-page.tex] \executesystemcommand{context a2-page} % Produce A4-example: \startbuffer[a4] \setuppapersize[A4] \setuplayout[page] \starttext \input tufte \stoptext \stopbuffer \savebuffer[a4][a4-page.tex] \executesystemcommand{context a4-page} % Do the job: \setuppapersize[A2] \setuplayout[page] \setuppositioning[state=overlay, yoffset=-12pt%%%%%%%%%%%%%%%%%%%%%%% Why is this offset needed??? ] \starttext \startpositioning \position(0,0){\externalfigure[a2-page]} \position(0,0){\framed[frame=off, offset=overlay, background=color, backgroundcolor=white]{\externalfigure[a4-page]}} \stoppositioning \stoptext --8<---------------cut here---------------end--------------->8--- -- Peter Münster Contact information: http://pmrb.free.fr/contact/