Skip to content

py-pdf/pdfly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

238 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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: uvx pdfly --help

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                       Extract and 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

๐Ÿ’ป
Yuriy Chernyshov
Yuriy Chernyshov

๐Ÿค” ๐Ÿ’ป
lkintact
lkintact

๐Ÿ›

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.

About

CLI tool to extract (meta)data from PDF and manipulate PDF files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 23