Main About Posts

Go Back

PDF Merger

java

javaFX

2022-07-01

Check out the source code here!

Table of contents

Description

PDF Merger, unsurprisingly, merges multiple PDF files into one.

It’s an app that I developed back in 2022, when my only option to merge PDFs was to use web-based tools hosted by strangers. I was very paranoid that they might secretly save my files in a remote database somewhere 😬😬, so I decided to build my own tool.

file browsing

Features

PDF merger has one simple goal: merging PDF files. As part of this, it supports a couple of features:

File selection

Users can select the source PDF files to merge. The GUI includes a “Select files” button that invokes the operating system’s native file browser.

File selections can also be reset with the “Reset selection” button.

file browsing

Save path configuration

Users can freely choose the directory/folder to which their new PDF will be saved. Again, this will bring up the OS’s file browser where the user can select a directory as the destination. There is a default path configured, so this is optional.

The user can then choose a name for the new PDF file, then click “Merge!“.

Technologies used

This is a Java-based desktop GUI application. The entire app was written in Java, with the GUI being implemented using JavaFX.

I followed object-oriented principles in creating this app:

Furthermore, PDF merging was executed using Apache’s PDFBox open-source library.

Aside: It was through this project that I realized the importance of the open-source ecosystem! Having just started out in software development, it would’ve taken me a very long time to implement this logic all from scratch.