Merge, split, encrypt... your files files by using a command line python program
- Merge Merge different pdfs into a single one
- Split Separate all the pages of a pdf, they will be renamed in the following order
- Rotate Rotate the pages of a pdf by 90, 180 or 270 degrees.
- toText Convert an entire pdf into text, which will be saved in a .txt file. WARNING the contents may not be readable.
- Encrypt Encrypt a pdf with a password. Be careful, it will be a copy of the pdf, the original will not be encrypted.
- Decrypt Decrypt a pdf if you have the password.
python pdf.py -f test.pdf -s
python pdf.py -f file1.pdf file2.pdf file3.pdf -m
python pdf.py -f file1.pdf file2.pdf --encrypt --verbose
Password:
python pdf.py --help
usage: pdf.py [-h] [-f FILE [FILE ...]] [-m] [-s] [-r] [--rotation ROTATION]
[--verbose] [--txt] [--encrypt] [--decrypt]
Manipulate your pdf files
optional arguments:
-h, --help show this help message and exit
-f FILE [FILE ...], --file FILE [FILE ...]
list of pdf
-m, --merge merge PDFs
-s, --split split PDFs
-r, --rotate rotate the pdf
--rotation ROTATION Value of the rotation
--verbose Print the different steps
--txt convert PDF into txt
--encrypt Encrypt a file
--decrypt Decrypt a file
Raphael Teitgen [email protected]