Metadata-Version: 2.1
Name: pdf-crop
Version: 0.0.15
Summary: A commandline tool to crop a PDF into sub-PDFs
Home-page: https://www.niuwei.info
Author: wniu99
Author-email: niuwei95@gmail.com
License: FreeBSD
Keywords: PDF,Crop
Platform: UNKNOWN
Description-Content-Type: text/markdown

# 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 <username> -p "<password>" dist/*

