diff options
Diffstat (limited to 'pdfcrop.sh')
-rw-r--r-- | pdfcrop.sh | 14 |
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 |