Skip to main content

Merge PDFs using CLI with customizations.

Project description

Merge-PDF

PyPI version Downloads License: MIT

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

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.

Source Distribution

mergemypdf-0.0.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

mergemypdf-0.0.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page