Skip to main content

A pure-python CLI application to manipulate PDF files

Project description

Pypi latest version Python Support License: BSD 3 Clause Documentation Status

build status GitHub last commit issues closed PRs closed

linters: black, ruff, mypi Pull Requests Welcome first-timers-only Friendly

pdfly

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

pdfly logo

Installation

pip install -U pdfly

As pdfly is an application, you might want to install it with pipx or uv tool

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.             │
│ booklet                   Reorder and two-up PDF pages for booklet printing.          │
│ cat                       Concatenate pages from PDF files into a single PDF file.    │
│ check-sign                Verifies the signature of a signed PDF.                     │
│ compress                  Compress a PDF.                                             │
│ extract-annotated-pages   Extract only the annotated pages from 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.                                │
│ rotate                    Rotate specified pages by the specified amount              │
│ sign                      Creates a signed PDF from an existing PDF file.             │
│ uncompress                Module for uncompressing PDF content streams.               │
│ 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 --help:

$ 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.       │
╰───────────────────────────────────────────────────╯

Note: pdfly has nothing to do with pdfly.net or gopdfly.com

Contributors ✨

pdfly is a free software project without any company affiliation. We cannot pay contributors, but we do value their contributions 🤗

Martin Thoma
Martin Thoma

💻 📖 🤔 🚇 🚧 📆
Lucas Cimon
Lucas Cimon

🐛 💻 📖 🚧
Rob Adams
Rob Adams

💻
Harsh
Harsh

💻
Sascha Rogmann
Sascha Rogmann

💻
Enrique Botía
Enrique Botía

💻
kommade
kommade

💻
Zingzy
Zingzy

💻
Subhajit Sahu
Subhajit Sahu

💻
Kian-Meng Ang
Kian-Meng Ang

🤔
Hal Wine
Hal Wine

🐛 💻
philippesamuel
philippesamuel

📖
marcobrb
marcobrb

📖
moormaster
moormaster

📖 💻
Geoff Beier
Geoff Beier

💻

This project follows the all-contributors specification (emoji key). Contributions of any kind welcome!

The list might not be complete. You can find more contributors via the git history and GitHubs 'Contributors' feature.

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.5.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

pdfly-0.5.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pdfly-0.5.1.tar.gz
Algorithm Hash digest
SHA256 636e9736ca3296ed69ad7e14d997813ea5a662ba7a86c77d155e343494dcc3d7
MD5 53cbcb18d1e8fd85f262fc694465627c
BLAKE2b-256 48ae70f161c80b3f39d8fe4ff784c78045225820d10375c81c2097c0e85ac0fc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pdfly-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 598a0f1fd88ab335527f58793a4626497a5c272bcba45c3fb58aa4050265ec18
MD5 271575b0cd9cf9454d0d1960e94d2a98
BLAKE2b-256 2dce2dde47faa2abd65658498959e716e0602d51bdf95114d17c1b275298fd66

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