projects
/
hacks
/
simpleWebSlides.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add script to convert pdf to 2x2
[hacks/simpleWebSlides.git]
/
scripts
/
nup.sh
1
#!/bin/sh
2
3
INPUT="$1"
4
OUTDIR=$(dirname "$INPUT")
5
if [ -z "$OUTDIR" ]; then
6
OUTDIR="."
7
fi
8
OUTPUT="$OUTDIR"/$(basename "$INPUT" .pdf)"_print.pdf"
9
10
pdfjam --landscape --nup 2x2 --scale 0.9 --paper a4 -o "$OUTPUT" "$INPUT"