summaryrefslogtreecommitdiff
path: root/pdfcrop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pdfcrop.sh')
-rw-r--r--pdfcrop.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/pdfcrop.sh b/pdfcrop.sh
new file mode 100644
index 0000000..ce74ce0
--- /dev/null
+++ b/pdfcrop.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+pdfcrop=$1
+texlive=$2
+if [[ $texlive =~ ^[^/].*$ ]]; then
+ texlive=$PWD/$texlive
+fi
+echo "Using TeXLive installation: $texlive"
+uncropped=$3
+output=$4
+
+PATH=$texlive/bin/x86_64:$PATH
+PDFCROP=$PWD/$pdfcrop
+$PDFCROP $uncropped $output --pdftex
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback