Skip to main content

A pure-python CLI application to manipulate PDF files

Project description

Code style: black PyPI version GitHub last commit Python Support Documentation Status

pdfly

pdfly (say: PDF-li) is a pure-python cli application for manipulating PDF files.

Installation

pip install -U pdfly

As pdfly is an application, you might want to install it with pipx.

Usage

$ pdfly --help

 Usage: pdfly [OPTIONS] COMMAND [ARGS]...

 pdfly is a pure-python cli application for manipulating PDF files.

╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --version                                                                   │
│ --help             Show this message and exit.                              │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────╮
│ 2-up             Create a booklet-style PDF from a single input.            │
│ cat              Concatenate pages from PDF files into a single PDF file.   │
│ compress         Compress a PDF.                                            │
│ extract-images   Extract images from PDF without resampling or altering.    │
│ extract-text     Extract text from a PDF file.                              │
│ meta             Show metadata of a PDF file                                │
│ pagemeta         Give details about a single page.                          │
│ x2pdf            Convert one or more files to PDF. Each file is a page.     │
╰─────────────────────────────────────────────────────────────────────────────╯

You can see the help of every subcommand by typing:

$ pdfly 2-up --help

 Usage: pdfly 2-up [OPTIONS] PDF OUT

 Create a booklet-style PDF from a single input.
 Pairs of two pages will be put on one page (left and right)
 usage: python 2-up.py input_file output_file

╭─ Arguments ─────────────────────────────────────────────────────────────────╮
│ *    pdf      PATH  [default: None] [required]                              │
│ *    out      PATH  [default: None] [required]                              │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                 │
╰─────────────────────────────────────────────────────────────────────────────╯

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

pdfly-0.3.3.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

pdfly-0.3.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pdfly-0.3.3.tar.gz.

File metadata

  • Download URL: pdfly-0.3.3.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pdfly-0.3.3.tar.gz
Algorithm Hash digest
SHA256 588bae178895f26795e1c2e839227fe7ad7b8f8b2e2149c8374cf7590472d116
MD5 076a3f814e35175e0740184fac15554c
BLAKE2b-256 7cfb51943237360e7b887b3c171f68b43e3aaee7b7b564a3829d7ebcb4c3184d

See more details on using hashes here.

File details

Details for the file pdfly-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pdfly-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pdfly-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c7a699bf80e21aec6bdcc95d9f3f2b6950230570ae1115ec9e45197ed7345b2
MD5 776f887cd7043d3ee7c1f86966d2166b
BLAKE2b-256 67c53842d7fcb1fe067913fcedfc67888bbe1aad2bafd59fb631176b5a5aeeb5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page