- Activate virtual environment
- Restore python dependencies by
pip install -r requirements.txt
in the shell - Three arguments are required to execute this program.
- -i input PDF file path
- -o output PDF file path
- -p page number in JSON array format e.g.
[1,3,5,7,9]
. Remember to escape square brackets if you are using zsh.
- Execute
python pdf-splitter.py -i <input-file> -o <output-file> -p <page-number-array>