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 Distributions
Hashes for pdf_crop-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f048968935c03273d503ce548c49f7e6c6ddebfde733e7ac6c3ffc653f282415 |
|
MD5 | def05f8c5537c73e249fbdcf886ae2c6 |
|
BLAKE2b-256 | 3af490213b3d7e3dfbe5100c4d8fab31b8c1d84be1e3b9740a690854af0d8a0c |