Skip to main content

Merge PDFs using CLI with customizations.

Project description


PyPI version

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.


mergemypdf -c <number_of_pdfs> -o <order_of_merging> -f <output_pdf_filename>

Example Usage:

mergemypdf -c 10 -o 1 -f merged.txt

Optional arguments:

- s : <pdf_name_starting_with_string> 
- e : <pdf_name_endswith_string> 
- cn: <pdf_name_containing_string>


  • -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.

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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mergemypdf, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size mergemypdf-0.0.2-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mergemypdf-0.0.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page