Skip to main content

A command-line utility for modifying PDFs with ease. Perform common PDF operations such as merging, splitting, compressing, and extracting pages, all from your terminal.

Project description

pdforge: iLovePDF made in home.

I'm too lazy to go to iLovePDF so i wrote this. Blessings!

Install

pip install -U pdforge

pdforge is an application, you might want to install it with pipx.

Usage

$ pdforge -h

usage: pdforge [-h] [-v]
             {cat,rm,secure,meta,rotate,extract-text,extract-images,watermark}
             ...

pdforge: iLovePDF made in home.

options:
  -h, --help            show this help message and exit
  -v, --version         display the current version

commands:
  {cat,rm,secure,meta,rotate,extract-text,extract-images,watermark}
                        PDF Utilities
    cat                 Merge multiple PDF files into a single PDF document
    rm                  Remove specified pages from a PDF and create a new
                        file with the remaining pages
    secure              Encrypt or decrypt a PDF file
    meta                Retrieve metadata from a PDF file
    rotate              Rotate page horizontally or vertically
    extract-text        Extract text from PDF file
    extract-images      Extract images from PDF file
    watermark           Add a watermark to every page in a PDF file

For help with a specific command, see: `pdforge <command> -h`.

To view detailed help for each subcommand, use the -h or --help flag:

$ pdforge cat -h

usage: pdforge cat [-h] [-o [OUTPUT]] FILE[:PAGES]] [FILE[:PAGES]] ...]

positional arguments:
  FILE[:PAGES]]         Path to the input PDF files to merge. Optionally
                        specify a page or page range in the format
                        'file.pdf:page' or 'file.pdf:start-end'

options:
  -h, --help            show this help message and exit
  -o [OUTPUT], --output [OUTPUT]
                        Output filename. Defaults to 'output.pdf'

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

pdforge-0.0.1.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

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

pdforge-0.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pdforge-0.0.1.tar.gz.

File metadata

  • Download URL: pdforge-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for pdforge-0.0.1.tar.gz
Algorithm Hash digest
SHA256 caa2c93f0c5d75cc023c79b62ce10d562026cb9911ead61979addc9db7ade93d
MD5 7a87533fdd9d5ab87150a6c9ba465f67
BLAKE2b-256 8cdf833f6b86bc2b2db2b853d127aafe7b7014930c1c719607bcc3dc0426d3bf

See more details on using hashes here.

File details

Details for the file pdforge-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pdforge-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for pdforge-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66383f03f5ac217889209a2d021847ab1ab2c2440fae19d0b76a4c94064bdd85
MD5 56f544b0a3389154afca152db6bbc8ff
BLAKE2b-256 6e8b095bd96a2f500684fd639f0d82c3eec388e4e3e0f66503daccfa092b9288

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