Skip to main content

A simple CLI to edit PDFs

Project description

PDFSplicer

Repository License PyPi

A CLI to splice and dice your PDFs

Install

Some variation of

pip install pdfsplicer

or

pipx install pdfsplicer

Usage

The pdfsplicer command line application takes several input file PDFs, each with a list of page indices or ranges to slice, and concatenates the result, writing to an output PDF.

For example, the following will take pages one and three from foo.pdf, all except the first and last pages of bar.pdf, and will write the result to baz.pdf:

pdfsplicer -f foo.pdf 1 3 -f bar.pdf 2:-1 -o baz.pdf

Rearranged for clarity:

pdfsplicer \
    -f foo.pdf 1 3 \
    -f bar.pdf 2:1 \
    -o baz.pdf

Pages can be sliced from PDFs with 1-based indices.

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

pdfsplicer-0.0.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

pdfsplicer-0.0.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file pdfsplicer-0.0.2.tar.gz.

File metadata

  • Download URL: pdfsplicer-0.0.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pdfsplicer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 31adf654650967be1d3702c5bee29a13982fa3b5b5ce80db854ad3b8ae20c3c3
MD5 10b2ccc948a26506b45e56f5eb8cda75
BLAKE2b-256 73d6b595efb30f6dc5d65cd54b9004f9bf13ad5225c32ddfac930779a96f7a6c

See more details on using hashes here.

File details

Details for the file pdfsplicer-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pdfsplicer-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pdfsplicer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e547ffc7b4ec5a775c3883b62f493d4bd8d85cd7e918609f4ab9086616b5c811
MD5 fb65c0daa1aa6651c75feb2edd930c19
BLAKE2b-256 3df2a3fd64977d045d9ed0306aad618f91a184dee5fdf32973c1962c9e305105

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