Skip to content

πŸ“ƒπŸƒ Prepare massive documents for printing at school by splitting them into 30-page chunks.

Notifications You must be signed in to change notification settings

RandomSearch18/pdf-cutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βœ‚οΈπŸ“ƒ PDF Cutter

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

Download

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

Run

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.

Alternative: running with uv

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

Screenshots

Screenshot of a single big PDF file in a file manager Log output of the program 13 PDF part files in a folder

Acknowledgements

Resources used

About

πŸ“ƒπŸƒ Prepare massive documents for printing at school by splitting them into 30-page chunks.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages