https://github.com/randomsearch18/pdf-cutter
https://github.com/randomsearch18/pdf-cutter
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/randomsearch18/pdf-cutter
- Owner: RandomSearch18
- Created: 2025-03-20T23:04:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-28T11:32:42.000Z (about 1 year ago)
- Last Synced: 2025-03-28T12:29:49.940Z (about 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ✂️📃 PDF Cutter
A Python tool that make it easier to print massive documents on school printers, 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](https://github.com/RandomSearch18/pdf-cutter/raw/refs/heads/main/main.py).
## Run
You can run the program with `uv`:
```bash
uv run main.py
```
If you don't have `uv` installed, then you must install the `pypdf` package manually, and then run `main.py`. E.g.
```bash
py -m pip install pypdf
py main.py
```
It will ask you to enter the path to the PDF you want to print, split it up into chunks (saved to the `pdf-cutter-temp` folder in the current working directory), and print them to the default printer.
## Acknowledgements
### Resources used
- [Tim Golden's Python Stuff: Print](https://timgolden.me.uk/python/win32_how_do_i/print.html)
- [Answer: Print to standard printer from Python?](https://stackoverflow.com/a/22550163/11519302)