Skip to main content

pdfdo

Everyday PDF operations from the command line.

Install

uvx pdfdo               # run without installing
uv tool install pdfdo   # install permanently
pipx install pdfdo      # alternative

Use

pdfdo                                        # interactive menu
pdfdo img2pdf scan1.jpg scan2.jpg -o out.pdf # lossless, keeps original JPEG data
pdfdo merge a.pdf b.pdf -o joined.pdf
pdfdo split report.pdf -d parts/
pdfdo extract report.pdf 2-last -o tail.pdf
pdfdo delete report.pdf 3 -o trimmed.pdf
pdfdo rotate scan.pdf 1,2 -a 90 -o upright.pdf
pdfdo pdf2img report.pdf -d pages/ --dpi 300
pdfdo compress big.pdf -o small.pdf
pdfdo protect private.pdf -o locked.pdf
pdfdo unlock locked.pdf -o open.pdf
pdfdo info report.pdf
pdfdo --version

Page ranges accept 1,3,5-8 and the keyword last, as in 2-last.

protect and unlock prompt for the password if -p is omitted, which keeps it out of your shell history. Every command that writes refuses to overwrite an existing file unless you pass --force.

Licence

MIT

Releases

Tagging vX.Y.Z publishes to PyPI via trusted publishing and attaches standalone binaries for Windows, macOS and Linux to the GitHub release.

Those binaries are unsigned, so macOS Gatekeeper and Windows SmartScreen will warn on first run. Installing with uv tool install pdfdo or pipx install pdfdo avoids the warning entirely.

Download files

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

Source Distribution

pdfdo-0.1.0.tar.gz (109.8 kB view details)

Uploaded Source

Built Distribution

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

pdfdo-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file pdfdo-0.1.0.tar.gz.

File metadata

  • Download URL: pdfdo-0.1.0.tar.gz
  • Upload date:
  • Size: 109.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pdfdo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0989fd3922ee930bb0922442b25aed48437128e0419f195a283a5367dc179df3
MD5 3f2821086ff7caa025ab6c55d5bdf6c8
BLAKE2b-256 9724a48f9c9513fdb8750bd326ebba62fb9d03d0d8aaa0aa8a16be5b8c3a8508

See more details on using hashes here.

File details

Details for the file pdfdo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdfdo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pdfdo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e17d7b645e199279d136f5d48fe8825373955ecab6eb4b4a2b0d69724bc5c0
MD5 6d746d7dc13e7da3d783258a28a94596
BLAKE2b-256 dfb0139019ce0c2ef9cf64f0adc48d011d3e2e516035848f1d4a77f09df6755d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page