A commandline tool to crop a PDF into sub-PDFs
Project description
Usages
Crop all the pages in the PDF
pdf_crop -i <str: input PDF file> [--threshold <float: default 0.008>] [--space <int: default 5>]
e.g.
pdf_crop -i ~/Downloads/test.pdf
or specify the space and threshold:
pdf_crop -i ~/Downloads/test.pdf --threshold 0.01 --space 3
Crop selected pages in the PDF
python ./pdf_crop -i <str: input PDF file> --page <number left top right bottom output> [--page <number left top right bottom output>] [--threshold <float: default 0.008>] [--space <int: default 5>]
e.g.
pdf_crop -i ~/Downloads/test.pdf --page 0 0 0 200 200 "~/Downloads/test - page 0.pdf"
or specify multiple pages:
pdf_crop -i ~/Downloads/test.pdf --page 0 0 0 200 200 "~/Downloads/test - page 0.pdf" --page 1 0 0 200 200 "~/Downloads/test - page 1.pdf"
Upload to PyPi
- python3 setup.py sdist bdist_wheel
- twine upload -u -p "" dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pdf_crop-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de3da25ca9ae2d2caf1f4d5219b12a633d6b4136fe4df19dcd9d421072a2d0c |
|
MD5 | 8700a5a6fc5d935ba148c3755ae0000f |
|
BLAKE2b-256 | 1d9571672aa5b6268262b390f526c2a20ddc57346643b8449f51c91204ddbbd8 |