Python 3 program to collate and reorder double-sided documents scanned through a single-sided document feeder.
The shell script setup.sh
checks/installs Python 3, pip, and python3-venv for Debian/Ubuntu systems.
Included is a virtual environment with the necessary PyPDF2
package included. To use, first enter the virtual environment:
source pypdf-env/bin/activate
Usage for the actual program is as follows:
python3 collate_PDFs.py <first-file>.pdf <second-file>.pdf <output-file>.pdf
To exit the virtual environment:
deactivate
With Python and Pip installed, use the following CMD command to install pypdf2:
pip install pypdf2
Then, run the program using:
py collate_PDFs.py <first-file>.pdf <second-file>.pdf <output-file>.pdf