Created
June 16, 2015 17:24
-
-
Save jyrkidn/cfcefeed858b4807b327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to remove last pages (2nd argument) in a pdf (first argument) | |
# Will output a new pdf and open it in Chromium | |
# Input pdf must have "_test" in the filename | |
INPUT=$1 | |
REMOVE=$2 | |
echo $INPUT | |
OUTPUT="${INPUT/_test/}" | |
pdftk $INPUT cat 1-r$((REMOVE+1)) output $OUTPUT | |
chromium-browser $OUTPUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment