Skip to main content

pdf-cli

Pypi Test coverage Documentation Supported Python versions

pdfcli is a command line utility to work with pdf.

It is able to split,join,reorder,extract text .

$ pdf --help
Usage: pdf [OPTIONS] COMMAND [ARGS]...

Options:
  --version
  --help     Show this message and exit.

Commands:
  decrypt    Remove password protection from PDF files.
  encrypt    Add password protection to PDF files.
  extract    extract one or multiple pages and build a new document.
  info       dump pdf information.
  join       join multiple pdf together in a single file.
  ocr        Extract text from PDF using OCR (requires tesseract)
  rotate     Rotate selected pages and outputs in new pdf
  split      split pdf into multiple single page file.
  watermark  use first page of pdf and add it as watermark to other document

Examples

Extract pages 1, and from 5 to 9 one file for page

pdf split source.pdf -p 1,5-9

Create a new pdf using pages 1, and from 5 to 9

pdf extract source.pdf  -p 1,5-9 -o new.pdf

Release files for pdf-cli 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf-cli 1.0
File Size Uploaded
pdf_cli-1.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf-cli 1.0
File Interpreter ABI Platform
pdf_cli-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.4 kB

Release files / pdf_cli-1.0.tar.gz

Download URL pdf_cli-1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c3fdb70af7157a58e8c7313f4094b0da039bb2f9eb58e446c874df73bef47cca
BLAKE2b-256 checksum
How to use checksums
b321ed693faabca9255cba694b07e9f283ec6a5a8492dac9248c69738b5bea45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 1, 2025.

Transparency log

Release files / pdf_cli-1.0-py3-none-any.whl

Download URL pdf_cli-1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48e07a0cfe647c725af93f6bf4929b90e5ff6dace0a5b7cb95931a73640480cb
BLAKE2b-256 checksum
How to use checksums
6350d0f498695a5f7b565ad891efd1af86fc2794f04f3755b7b0f26d5bf953ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 1, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page