Pdf_Merge in Python

Merging pdf can be done easily online, but online websites have a total file size limit of 25MB. That might undermine our needs.

IN python pdf merging can be done much much easier,

All one needs is

  • Python
  • PyPDF2 library

Step 1) Save the following code as .py file


Step 2)

Copy all the pdfs to merged in C:\folder (in case you want to run .py file)

Copy in any folder and change directory in .py code


Step 3) Run the .py file in either python or Anaconda Prompt


Step 4) With a fraction of seconds you should see the code run, and message that “pdfs are merged”. The new merged pdf file will be saved at the same directory.






Mtech in Clinical Eng Jointly offered by Indian institute of technology Madras& Christian medical college Vellore& Sree chitra tirunal institute for medical sciences and technology Trivandrum.
This entry was posted in Programming, Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s