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.13.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

pdf_crop-0.0.13-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdf_crop-0.0.13.tar.gz
  • Upload date:
  • Size: 4.2 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.13.tar.gz
Algorithm Hash digest
SHA256 6b108756a9b7f8dbb6070ebb8bcaf645e4aa858f0b08142b80b333d7d6d5377b
MD5 457b4415c8223f7daa4159e8d8c3ebc6
BLAKE2b-256 6a12e5616ab0606f9cdf3acde8d01cd0d24f5a467e702c0f89df3805745cb39c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdf_crop-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 1246b3e99972f25b1383166faf1d1c0f503fc6ef47ff778847bb1cae8fcbba83
MD5 57c1cf87aa4f38541d2103ee6581084c
BLAKE2b-256 6517af3d4ccefde16896b34243ca78aef0c1c95a8987f0a82dd71664ca672f74

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