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.11.tar.gz (4.1 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.11-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdf_crop-0.0.11.tar.gz
  • Upload date:
  • Size: 4.1 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.11.tar.gz
Algorithm Hash digest
SHA256 68ce100e789a3eeeecabb380a0da3d97b21f5f2d463aa975057e0048611d763c
MD5 2f4e98fb5fb645cea1bcf56625137345
BLAKE2b-256 87fc2de54f57d6defc70b37d7c7bc5ff1414c6c9183453adac7255da4e06d150

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdf_crop-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 aeda7544a10405df65ac0f59dccf921f0ecceaca9be848ce5094484a75bc01b9
MD5 05459c203cc8099d857637b59afb2a93
BLAKE2b-256 1a025a85376489e0224c8a5b53523b7bf360fc749605b382caed201d649bc5ab

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