booklet-splitter-0.0.2
توضیحات
Make booklets out of pdf files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | booklet-splitter-0.0.2 |
| نام | booklet-splitter |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | François Sécherre |
| ایمیل نویسنده | secherre.nospam@gmail.com |
| آدرس صفحه اصلی | https://github.com/fanchuo/booklet_splitter |
| آدرس اینترنتی | https://pypi.org/project/booklet-splitter/ |
| مجوز | - |
# Booklet splitting tool
[](https://codecov.io/gh/fanchuo/booklet_splitter)

For a given large PDF file, bind a book.
### Installation
On your python environment, just issue this pip install command:
```bash
pip install booklet_splitter
```
### Usage
```bash
usage: booklets [-h] [--max_size MAX_SIZE] [--log LOG] [--targetdir TARGETDIR] [--no-layout] [--cover] input_pdf
For a given pdf, builds booklets to be printed, folded and eventualy assembled as a book
positional arguments:
input_pdf PDF file to be sliced as booklets
optional arguments:
-h, --help show this help message and exit
--max_size MAX_SIZE Max size for a booklet, must be multiple of 4
--log LOG Log level at execution
--targetdir TARGETDIR
Directory where the booklets PDF are written
--no-layout Only splits your document in booklets
--cover Adds a page at the very beginning and at the very end, to paste a cover
```
### Useful commands to print pdf files
For a given pdf, print odd/even pages:
```bash
lpr -o page-set=odd <file>
lpr -o page-set=even <file>
```
For a given pdf, print recto/verso
```bash
lpr -o sides=one-sided <file>
lpr -o sides=two-sided-long-edge <file>
lpr -o sides=two-sided-short-edge <file>
```
Print black and white
```bash
lpr -o saturation=percent <file>
```
نیازمندی
| مقدار | نام |
|---|---|
| ==1.26.0 | PyPDF2 |
| ==6.0.2 | coverage |
| ==4.0.1 | flake8 |
| ==21.9b0 | black |
| ==3.4.2 | twine |
نحوه نصب
نصب پکیج whl booklet-splitter-0.0.2:
pip install booklet-splitter-0.0.2.whl
نصب پکیج tar.gz booklet-splitter-0.0.2:
pip install booklet-splitter-0.0.2.tar.gz