[sclug] Printing two pages per A4 with GNOME and CUPS

Alex Butcher lug at assursys.co.uk
Tue Apr 25 18:42:58 UTC 2006


On Tue, 25 Apr 2006, pieter claassen wrote:

> For the Gnome boffins out there, I am still incapable to print two pages
> A5 next to each other on an A4 using Evince even after selecting two
> pages per A4 next to each other in a portrait orientation.
>
> Does anybody know how to make this feature in evince (or for that matter
> any other app) work the way it claims to work?

My general solution is to use the following script instead of lpr, so long
as the printer command can be specified somewhere:

#!/bin/sh
if [ $* ]; then
 	echo args
 	exec /usr/bin/mpage -B -2 -bA4 -f -P- -o $* | lpr
else
 	echo noargs
 	TMPFILE=`mktemp /tmp/lpr2up.XXXXXX` || exit 1
 	cat >$TMPFILE
 	exec /usr/bin/mpage -B -2 -bA4 -f -P- -o <$TMPFILE | lpr
 	rm -f $TMPFILE
fi

I call it lpr2up.

> Cheers,
> Pieter

HTH,
Alex.
-- 
Alex Butcher         Renew for Freedom! Renew your passport in May 2006 and
Bristol, UK          resist compulsory UK ID Cards and National ID Database
PGP/GnuPG ID:0x5010dbff                    <http://www.renewforfreedom.org>


More information about the Sclug mailing list