https://github.com/kairavkkp/merge-pdf
My first PyPi Package. Merge Image and PDF files using customizations within a folder using the Command line.
https://github.com/kairavkkp/merge-pdf
epubs hacktoberfest hacktoberfest2021 merge-images merge-pdf merge-pdf-images pdf-files pdfs
Last synced: about 1 month ago
JSON representation
My first PyPi Package. Merge Image and PDF files using customizations within a folder using the Command line.
- Host: GitHub
- URL: https://github.com/kairavkkp/merge-pdf
- Owner: kairavkkp
- License: mit
- Created: 2020-03-03T10:57:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-23T05:46:50.000Z (over 3 years ago)
- Last Synced: 2025-03-17T07:51:24.022Z (about 1 month ago)
- Topics: epubs, hacktoberfest, hacktoberfest2021, merge-images, merge-pdf, merge-pdf-images, pdf-files, pdfs
- Language: Python
- Homepage: https://pypi.org/project/mergemypdf/
- Size: 1.26 MB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
# [Merge-PDF](https://github.com/kairavkkp/Merge-PDF)
[](https://travis-ci.com/kairavkkp/Merge-PDF)
[](https://badge.fury.io/py/mergemypdf)
[](https://pepy.tech/project/mergemypdf)
Merge PDF files using customizations within a folder using Command line.
# 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 -o -f `#### 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 :
- e :
- cn:
```#### 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.
- `-p` represents password used to decrypt PDFs. If the PDFs have individually different passwords omit this and you will be prompted to enter each password.
- `-epub` represents the flag if only EPUBs need to be merged within a folder. Default is false.
- `-ep` represents the flag if both EPUBs and PDFs need to be merged within a folder. Default is false.
- `-ie` represents the flag if both images and EPUBs need to be merged within a folder. Default is false.
- `-a` represents 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 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.
- `mergemypdf -p test123` Merge all PDFs from directory using the supplied password on any encrypted PDFs.
- `mergemypdf -epub 1` Only merge EPUB files from the directory.
- `mergemypdf -ep 1` Merge both EPUBs and PDFs from the directory.
- `mergemypdf -ie 1` Merge both Images and EPUBs from the directory.
- `mergemypdf -a 1` Merge PDFs, Images and EPUBs from the directory.