From 96e12c8a274ea3e08648116f3fb052e3de005560 Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Mon, 13 Apr 2020 08:40:01 -0700 Subject: Initial code release --- pdfcrop.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pdfcrop.sh (limited to 'pdfcrop.sh') 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 -- cgit v1.2.3