Skip to main content

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

  1. python3 setup.py sdist bdist_wheel
  2. twine upload -u -p "" dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf_crop-0.0.18.tar.gz (4.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pdf_crop-0.0.18-py3.8.egg (11.6 kB view details)

Uploaded Egg

pdf_crop-0.0.18-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file pdf_crop-0.0.18.tar.gz.

File metadata

  • Download URL: pdf_crop-0.0.18.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pdf_crop-0.0.18.tar.gz
Algorithm Hash digest
SHA256 a509c7d4fde346858dda9748f75141048d83873e23fd2fc62b73f29603e513bd
MD5 ea390902de58e079fe7be84be549f09f
BLAKE2b-256 eae42c6c6344aab01e34384c417e1ea66fa32a10e6410ada38705a057d78b4dd

See more details on using hashes here.

File details

Details for the file pdf_crop-0.0.18-py3.8.egg.

File metadata

  • Download URL: pdf_crop-0.0.18-py3.8.egg
  • Upload date:
  • Size: 11.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pdf_crop-0.0.18-py3.8.egg
Algorithm Hash digest
SHA256 e9d9ab79c1b002b41b443df1b0ca16be87770d816c88412ea8624422762cc919
MD5 cbb849e9bf22031347885c8a2ec59a64
BLAKE2b-256 25bf90b98a050679709802a2ff4ac4b55457b7b5a45618bbf8ad276285ffc9ef

See more details on using hashes here.

File details

Details for the file pdf_crop-0.0.18-py3-none-any.whl.

File metadata

  • Download URL: pdf_crop-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pdf_crop-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 40d476dc788f366425cbb4ac81f5de3fd24c70dfecc6948b29b21727b371caa4
MD5 f432fb005fd8d26766d06bd36fbf9e05
BLAKE2b-256 79a1d02b789f0d6b08747001af67eec585b3667f08591f0bae74ea1f166dc931

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page