From 22f4404592585368ad250cdbead655c498c10509 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 30 Dec 2019 15:31:57 +0300 Subject: Track new spliff --- bin/spliff | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/spliff diff --git a/bin/spliff b/bin/spliff new file mode 100755 index 0000000..3767bac --- /dev/null +++ b/bin/spliff @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2