Merge Images, EPubs 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 -hfor more info.
Usage:
mergemypdf -c <number_of_pdfs> -o <order_of_merging> -f <output_pdf_filename>
Examples:
mergemypdf -c 10 -o 1 -f merged.pdf
mergemypdf -p password -f merged.pdf
mergemypdf -ep 1 -p password
mergemypdf -a 1 -f merged.pdf
Optional arguments:
- s : <pdf_name_starting_with_string>
- e : <pdf_name_endswith_string>
- cn: <pdf_name_containing_string>
Note:
-crepresents number of PDFs needed to merge.-orepresents order of merging PDFs, 0 is Ascending, 1 is descending and 2 is Shuffle. Default is Ascending.-srepresents start string in PDF file's name.-erepresents end string in PDF file's name.-cnrepresents string containing in PDF file's name.-frepresents saved file name. Default names are randomly generated, adviced to specify a name everytime.-irepresents the flag if only images need to be merged within a folder. Default is false.-iprepresents the flag if both images and pdfs need to be merged within a folder. Default is false.-prepresents password used to decrypt PDFs. If the PDFs have individually different passwords omit this and you will be prompted to enter each password.-epubrepresents the flag if only EPUBs need to be merged within a folder. Default is false.-eprepresents the flag if both EPUBs and PDFs need to be merged within a folder. Default is false.-ierepresents the flag if both images and EPUBs need to be merged within a folder. Default is false.-arepresents the flag if all support file types (PDF, Images and EPUBS) need to be merged within a folder. Default is false.
Usage of Optional Arguments.
mergemypdf -s 09Only merge PDFs starting with 09.mergemypdf -e DerivationOnly merge PDFs ending with Derivation.mergemypdf -cn LectureOnly merge PDFs having keyword 'Lecture' in the name.mergemypdf -i 1Only merge Images from the directory.mergemypdf -ip 1Merge both Images and PDFs from the directory.mergemypdf -p test123Merge all PDFs from directory using the supplied password on any encrypted PDFs.mergemypdf -epub 1Only merge EPUB files from the directory.mergemypdf -ep 1Merge both EPUBs and PDFs from the directory.mergemypdf -ie 1Merge both Images and EPUBs from the directory.mergemypdf -a 1Merge PDFs, Images and EPUBs 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.2.tar.gz
(4.7 kB
view details)
File details
Details for the file mergemypdf-0.1.2.tar.gz.
File metadata
- Download URL: mergemypdf-0.1.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c274d788158f51f3d82b681326e046641a6cf31d3917ee5616a07d3e415f602
|
|
| MD5 |
1a8bd7cb75383e5671d0587491a0175a
|
|
| BLAKE2b-256 |
0cea5b56352ed544b13bd27b62b5b3f6e0aa621d0451bb26132a3a5318501fb6
|