summaryrefslogtreecommitdiffstats
path: root/prettyPrint.txt
blob: d5be66adda173a5fa2a5029f3ec0f38af5d71dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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