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.                                            │
| uncompress       Uncompresses 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.                          │
│ rm               Remove pages from PDF files.                               │
│ update-offsets   Updates offsets and lengths in a simple PDF file.          │
│ 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.4.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

pdfly-0.4.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pdfly-0.4.0.tar.gz
Algorithm Hash digest
SHA256 aff261b45397b2c6eb1e2cdd42fd89325aa5e88c2dae9f0af15d3859bdcba9b9
MD5 10278240dd0af38a263e0303eec5685a
BLAKE2b-256 6dd2201b4033263245785e4f7f91265609d6c433bd45648e907be9e47cbb784d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pdfly-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8483e2a02eb6c2c6902a9a0cf42638cbcb9e56779aa1bef7160fe995e4e75f56
MD5 ee3dd9a56f1b7ac361920f499f260618
BLAKE2b-256 90e399782f521d33eb867ca766a23d728c8bfd174d3e4e3de155eec2798988ce

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page