A Python tool that prepares massive documents for printing at school, by splitting them into 30-page chunks.
π PDF Cutter slices your PDFs for PaperCut
Clone the repository or download the source code from this GitHub repository.
On school computers, it's easiest to download just the main.py
file.
You then need to install the pypdf
package, e.g.
py -m pip install pypdf
Use Python to run main.py
, providing it the path to your PDF file. For example, on Windows:
py main.py "H:\Downloads\Big document.pdf"
The program will take the PDF file you have provided, split it into a number of "chunks" of up to 30 pages each, and save them as new PDF files in a subfolder within the folder where the main PDF file is.
In this example, the PDF chunk files would be saved in H:\Downloads\Big document (PDF cutter)\
. See the screenshots below for another example.
If you run the program multiple times, it will re-use the same subfolder, but update all the PDF chunks.
If you have the uv
tool installed, you can run the program directly, without having to manually install the pypdf
package.
uv run main.py