Skip to main content

Make booklets out of pdf files

Project description

Booklet splitting tool

codecov Build pass

For a given large PDF file, bind a book.

Installation

On your python environment, just issue this pip install command:

pip install booklet_splitter

Usage

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:

lpr -o page-set=odd <file>
lpr -o page-set=even <file>

For a given pdf, print recto/verso

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

lpr -o saturation=percent <file>

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

booklet_splitter-0.0.5-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file booklet_splitter-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for booklet_splitter-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac5b4c298d39dd4ddf5501465af3c8226a9046e5db44f02eff5accdc22c2264
MD5 fbca293a82423a6cbb9a6c3cf2807ef8
BLAKE2b-256 a6b062bf26ab6a0b5696bdcf2f341a576f56a9942819e72362d4b9761d6b0af2

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