Shell script for spliting big PDF files
The purpose of this script of splitting big PDF files to smaller one based on number of pages per small file. Syntax:
./splitpdf.sh big.pdf
Script will show how many pages is in PDF file and how big is in MB, and ask for number of pages per small file.
Result of 25-page PDF file big.pdf splitted to 10-page files are:
big_1-10.pdf
big_11-20.pdf
big_21-25.pdf