Skip to main content
Merge-PDF

Merge-PDF

Build Status 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>

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:

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

Metadata

Release files for mergemypdf 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mergemypdf 0.1.2
File Size Uploaded
mergemypdf-0.1.2.tar.gz 4.7 kB Details

Release files / mergemypdf-0.1.2.tar.gz

Download URL mergemypdf-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6c274d788158f51f3d82b681326e046641a6cf31d3917ee5616a07d3e415f602
BLAKE2b-256 checksum
How to use checksums
0cea5b56352ed544b13bd27b62b5b3f6e0aa621d0451bb26132a3a5318501fb6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page