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
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
Installation
Using pip (recommended):
pip install simple-pdf-cli
Manual Installation
- Clone the repo
git clone https://github.com/Falachi/simple-pdf-cli.git
- Go to project directory
cd simple-pdf-cli
- Install package
pip install -e .
To-Do List
- Implement proper type and error checking
- Compress PDF
- Split PDF
- Password protect
- Allow a
.txtfile as input for arguments that accept multiple files - Edit PDF metadata
- Upload to PyPI
- Create a GUI version
- Etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_pdf_cli-0.1.2.tar.gz.
File metadata
- Download URL: simple_pdf_cli-0.1.2.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6b508554a747c2b10c7ea073efc9dc63cc32a675c367d52bc3a06a6ef24f3bc
|
|
| MD5 |
795f42b32da76061db898a284ac824cd
|
|
| BLAKE2b-256 |
36b8fbc08a67a658db3aa21f73f2b61384ed45c818e99387159fcd94e47e7b1d
|
Provenance
The following attestation bundles were made for simple_pdf_cli-0.1.2.tar.gz:
Publisher:
publish-to-pypi.yml on Falachi/simple-pdf-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_pdf_cli-0.1.2.tar.gz -
Subject digest:
f6b508554a747c2b10c7ea073efc9dc63cc32a675c367d52bc3a06a6ef24f3bc - Sigstore transparency entry: 729524395
- Sigstore integration time:
-
Permalink:
Falachi/simple-pdf-cli@4253cdb67fee3ade0f17c7b46cf473db65f33dbe -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Falachi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@4253cdb67fee3ade0f17c7b46cf473db65f33dbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file simple_pdf_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: simple_pdf_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acaa34dc57f6d189d67cc8da383ad8ee4130e5e3aff116bdbd5954087f20e3eb
|
|
| MD5 |
be92ca5621c8afc96d9a012c09e30179
|
|
| BLAKE2b-256 |
02282be533c0836b55d9bc389b69aeeaa3fe568602f09080748d51a66529ef58
|
Provenance
The following attestation bundles were made for simple_pdf_cli-0.1.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on Falachi/simple-pdf-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_pdf_cli-0.1.2-py3-none-any.whl -
Subject digest:
acaa34dc57f6d189d67cc8da383ad8ee4130e5e3aff116bdbd5954087f20e3eb - Sigstore transparency entry: 729524399
- Sigstore integration time:
-
Permalink:
Falachi/simple-pdf-cli@4253cdb67fee3ade0f17c7b46cf473db65f33dbe -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Falachi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@4253cdb67fee3ade0f17c7b46cf473db65f33dbe -
Trigger Event:
push
-
Statement type: