Automatically remove white borders in pdf/ppt.
Go to file
2021-06-03 15:44:28 +08:00
.gitignore add config file for default configuration, fix a bug that close powerpoint after cropping 2021-06-03 11:32:22 +08:00
cropper.py update ui, fix a bug that can not save cropped pdf to target directory 2021-06-03 15:44:28 +08:00
LICENSE Initial commit 2021-05-26 14:40:07 +08:00
main.py update ui, fix a bug that can not save cropped pdf to target directory 2021-06-03 15:44:28 +08:00
README.md bugfix 2021-05-26 15:01:32 +08:00
ui.py update ui, fix a bug that can not save cropped pdf to target directory 2021-06-03 15:44:28 +08:00
UserMannual.md update readme and add usermannual 2021-05-26 15:00:45 +08:00

PDFCropper

Automatically remove white borders in pdf/ppt. A user mannual written in chinese can be found here: UserMannual

Dependencies

  • pymupdf
  • python-pptx
  • comtypes
  • numpy
  • pillow

To install these packages, simply run:

pip install pymupdf python-pptx comtypes numpy pillow

if you want to package it into a exe file, you may also need pyinstaller.

Frequently askes questions

Q: Why these code looks like shit? A: They are written in a hurry and i currently have no time or interest in re-writing them...(It would be thankful if you want to open a PR.)