From aec59a5b1051381b0fba66852c852b5999352d16 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 23 Sep 2010 00:59:59 +0200 Subject: Some specifications --- prettyPrint.txt | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 prettyPrint.txt diff --git a/prettyPrint.txt b/prettyPrint.txt new file mode 100644 index 0000000..d5be66a --- /dev/null +++ b/prettyPrint.txt @@ -0,0 +1,46 @@ +pdftops /tmp/meta-variables.pdf - | bzip2 | ssh graal \ + "bzcat - > /tmp/paf.ps + psnup2.pl -s1 -l1 -m1 /tmp/paf.ps | psbook | psnup -2 -pa4 \ + | ps2pdf - - | bzip2" \ + | bzcat > /tmp/paf.pdf + +pdftops /tmp/meta-variables.pdf - | bzip2 | \ + (bzcat - > /tmp/paf.ps + psnup2.pl -s1 -l1 -m2 /tmp/paf.ps | psnup -1 -pa4 1cm \ + | ps2pdf - - | bzip2) \ + | bzcat > /tmp/paf.pdf + + + +prettyPrint -n2 -m1 /tmp/paf.pdf + +Margins: + crop, _, nonup: psresize -m0 | pscrop -mf + crop, nobook, nup: psresize -m0 | pscrop -mh | psnup -mh + crop, book, nup: psresize -m0 | pscrop -mf | psbook | psnup -m0 + nocrop, _, nonup: psresize -mf + nocrop, nobook, nup: psresize -mh | psnup -mh + nocrop, book, nup: psresize -mf | psbook | psnup -m0 + + + +pdftops -paper a4 /tmp/meta-variables.pdf /tmp/meta-variables.ps + +ssh graal psnup2.pl -d -s1 -l1 -m1 - < /tmp/meta-variables.pdf + +psresize -pa4 /tmp/meta-variables.ps + | pstops -pa4 '1:0@1.427(-145.0,-143.7)' \ + | ps2pdf -sPAPERSIZE=a4 - /tmp/pif.pdf + + +ssh graal \ + "cat > /tmp/paf.pdf; pdftops /tmp/paf.pdf - | psresize -pa4 > /tmp/paf.ps + psnup2.pl -s1 -l1 -m0.5 /tmp/paf.ps | psnup -2 -pa4 -m0.5cm \ + | ps2pdf -sPAPERSIZE=a4 - -" < /tmp/meta-variables.pdf | xpdf - + + + +ssh chalmers \ + "cat > /tmp/paf.pdf; pdftops /tmp/paf.pdf /tmp/paf.ps; + psbook /tmp/paf.ps | psnup -pa4 -2 | ps2pdf -sPAPERSIZE=a4 - - | lp -o HPEdgeToEdge -o Duplex=DuplexTumble -o PageSize=A4 -t 'week2.pdf'" \ + < week2.pdf -- cgit v1.2.3