Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Merge 2 PDFs in Java

The aim of this program is to merge two pdfs and create a new pdf which contains the contents of the first and second pdfs in order.

Libraries used:

  • Apache PDFBox - PDFMergerUtility class was used mainly for the merging function.

Pre-requisites:

  • Add the Apache PDFBox dependency to your IDE from here

  • Without IDE, follow the steps given in this LINK

Usage:

Run the Merge2PDFFiles project in Intellij/Any other IDE supporting Java

I/O:

Enter first pdf name(without extension): $(pdf1)

Enter second pdf name(without extension): $(pdf2)

Enter destination fileName(without extension): $(MergedPdf)

Documents Successfully Merged!

<Sample input and output files present in the files itself>