Merge Images and PDFs using CLI with customizations.
Project description
How to Install
pip install mergemypdf
How to use
- Open Terminal
- Move to the directory where PDFs are present.
- Run
mergemypdf -h
for more info.
Usage:
mergemypdf -c <number_of_pdfs> -o <order_of_merging> -f <output_pdf_filename>
Example Usage:
mergemypdf -c 10 -o 1 -f merged.pdf
Optional arguments:
- s : <pdf_name_starting_with_string>
- e : <pdf_name_endswith_string>
- cn: <pdf_name_containing_string>
Note:
-c
represents number of PDFs needed to merge.-o
represents order of merging PDFs, 0 is Ascending, 1 is descending and 2 is Shuffle. Default is Ascending.-s
represents start string in PDF file's name.-e
represents end string in PDF file's name.-cn
represents string containing in PDF file's name.-f
represents saved file name. Default names are randomly generated, adviced to specify a name everytime.-i
represents the flag if only images need to be merged within a folder. Default is false.-ip
represents the flag if both images and pdfs need to be merged within a folder. Default is false.
Usage of Optional Arguments.
mergemypdf -s 09
Only merge PDFs starting with 09.mergemypdf -e Derivation
Only merge PDFs ending with Derivation.mergemypdf -cn Lecture
Only merge PDFs having keyword 'Lecture' in the name.mergemypdf -i 1
Only merge Images from the directory.mergemypdf -ip 1
Merge both Images and PDFs from the directory.
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
mergemypdf-0.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for mergemypdf-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713a3238b994beb16de22efe956c3a7f9718a8b09f8873e8b3c963ca1f98f945 |
|
MD5 | 5a35737f3a3390838e87ee49f84fe7a7 |
|
BLAKE2b-256 | 9f1cb20026453f589b029f4722a72097f23fe957cb3d6cffa19969ce01b768db |