summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prettyPrint.txt46
1 files changed, 46 insertions, 0 deletions
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