Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pdfpextr()
- {
- # function based on a function by Kurt Pfeifle
- # http://www.linuxjournal.com/content/tech-tip-extract-pages-pdf
- # $1 is the input file
- # $2 is the first page of the range to extract
- # $3 is the last page of the range to extract
- # $4 is the output file minus the extension
- # ex: pdfpextr foo.pdf 5 10 foo1
- gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
- -dFirstPage=${2} \
- -dLastPage=${3} \
- -sOutputFile=${4}.pdf \
- ${1}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement