Skip to main content

A simple CLI app for basic PDF modifications.

Project description

Simple PDF-CLI

Simple PDF-CLI is a simple CLI app to edit PDFs directly from the terminal. Current features:

  • Merge multiple PDFs
  • Convert PDF to images
  • Combine images to a PDF
  • Reorder pages of a PDF
  • Trim pages of a PDF
  • Split a PDF into multiple PDFs
  • Encrypt a PDF
  • Decrypt a PDF
  • Compress a PDF

Testing photos by Pavel Moiseev on Unsplash.

Usage Examples

Merge

pdfcli merge file1.pdf file2.pdf -o merged.pdf

Images to PDF

pdfcli image1.png image2.png image3.png -o output.pdf

PDF to Images

pdfcli file.pdf -o out_images

Reorder

pdfcli input.pdf -o output.pdf -r 3,1,2

Trim

pdfcli input.pdf -o output.pdf -p 1-5,7,10-12,9

Split

pdfcli split input.pdf -o out_pdfs -p 1-5,3-6,7

Encrypt

pdfcli encrypt file.pdf -o output.pdf -p password1

Decrypt

pdfcli decrypt file.pdf -o output.pdf -p password1

Compress

pdfcli compress input.pdf -o output.pdf -l 6 -q medium

Installation

Using pip (recommended):

pip install simple-pdf-cli

Manual Installation:

  1. Clone the repo
git clone https://github.com/Falachi/simple-pdf-cli.git
  1. Go to project directory
cd simple-pdf-cli
  1. Install package
pip install -e .

To-Do List

  • Implement proper type and error checking
  • Compress PDF
  • Split PDF
  • Password protect
  • Allow a .txt file as input for arguments that accept multiple files
  • Edit PDF metadata
  • Upload to PyPI
  • Separate CLI and core functions
  • Create a GUI version

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

simple_pdf_cli-0.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

simple_pdf_cli-0.2.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_pdf_cli-0.2.0.tar.gz.

File metadata

  • Download URL: simple_pdf_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simple_pdf_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 16168d62abab9f5e62a954014d3fd3f0dfb89140d09812f8cdbc970b01264fd7
MD5 845651f43d022338ffe43c19a7d5844e
BLAKE2b-256 1e81136ed8aa15cf9a0f07dd8dc30571d39c78b86fdd609bfc172b628402d1cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_pdf_cli-0.2.0.tar.gz:

Publisher: publish-to-pypi.yml on Falachi/simple-pdf-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simple_pdf_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: simple_pdf_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simple_pdf_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3f60604c3dcaf0e1bb99aa05ca6e33288b2173d2f501ecc1e35d17425d5e43
MD5 1e6c57db3de6a981d1857ef3dbadbc8e
BLAKE2b-256 40512bb402e8e5b5ca73f1e2db3993c20c3de36605dbf824e7d627884c9d4e85

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_pdf_cli-0.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Falachi/simple-pdf-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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