When preparing reports or organizing project files, you may need to combine several PDFs into a single document. Sometimes you need all the pages from each file. Other times, you only want to include certain pages. If the PDF data comes from memory or a network response, working with input streams may be more convenient. This article covers three ways to merge PDFs in Java: combining entire documents, merging selected pages from multiple PDFs, and merging PDFs using input streams. 1. Add the Maven Dependency First, add the following repository and dependency to your Java project's pom.xml file: <repositories> <repository> <id> com.e-iceblue </id> <name> e-iceblue </name> <url> https://repo.e-iceblue.com/nexus/content/groups/public/ </url> </repository> </repositories> <dependencies> <dependency> <groupId> e-iceblue </groupId> <arti...
File APIs for Word/Excel/PowerPoint/PDF
A blog about Microsoft Office and PDF document development using .NET and Java.