| summaryrefslogtreecommitdiff |
path: root/pdf_extract_pages.sh
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-11-08 22:20:29 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-11-08 22:20:29 +0100 |
| commit | cf3c99e9462cf4f56f1cceb053cc923875cc018d (patch) | |
| tree | 76d952658b7c8d8a7d8aef2b66ae63574561a6a4 /pdf_extract_pages.sh | |
| parent | ae4f6ec5d716bdca1a920515fce78121a6953c69 (diff) | |
Adds PDF files handling scripts.
Diffstat (limited to 'pdf_extract_pages.sh')
| -rwxr-xr-x | pdf_extract_pages.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pdf_extract_pages.sh b/pdf_extract_pages.sh new file mode 100755 index 0000000..0905241 --- /dev/null +++ b/pdf_extract_pages.sh @@ -0,0 +1,9 @@ +#!/bin/bash +if [[ ! $# -eq 4 ]] +then + echo "usage: $0 <INPUT_FILE> <FIRST_PAGE> <LAST_PAGE> <OUTPUT_FILE>" + exit -1 +fi + +gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH \ + -dFirstPage=$2 -dLastPage=$3 -sOutputFile=$4 $1 |


