summaryrefslogtreecommitdiffstats
path: root/.local/bin/spliff
blob: 3767bacb83dc34f9704588d9a9e597ea08b8bcc9 (plain)
1
2
3
4
5
6
#!/usr/bin/env zsh

PDF=$1
OUTPUT="${PDF:r}_spliff.pdf"
N=`qpdf --show-npages $1`
qpdf --collate --empty --pages $1 1-$(((N+1)/2)) $1 $(((N+1)/2 + 1))-$N -- $OUTPUT