PDF-Split-Merge-App is a desktop application built in Java (using JavaFX) for splitting and merging PDF files. It provides an intuitive graphical interface for users to separate a PDF into multiple parts or combine several PDFs into a single document.
-
PDF Splitting:
- Split a PDF into two custom ranges or into multiple documents by specifying page numbers.
- Choose the output directory for the resulting PDFs.
- Error handling and user feedback for invalid input (e.g., no output folder selected).
-
PDF Merging:
- Merge multiple PDF documents into one.
- Add or remove PDFs from the merge list.
- Select an output directory for the merged file.
- Success and error messages for user actions.
-
User Interface:
- Built with JavaFX, providing a modern and responsive UI.
- Customizable style via CSS (
pdf-split-merge-tool/src/main/resources/style.css).
- Java
- JavaFX (UI)
- Apache PDFBox (PDF manipulation)
- FXML (UI layout and logic separation)
Important:
You must have JavaFX installed to run this application.
- If using standard Java distributions (e.g., Oracle JDK or OpenJDK), you need to download and configure JavaFX separately.
- Alternatively, you can use the Liberica JDK (Liberica Full JDK), which comes bundled with JavaFX out of the box.
-
Running the Application
- Ensure you have Java (with JavaFX) installed.
- Run the main class:
com.catalin.pdfapp.Start - The application window will open, allowing access to split and merge functionalities.
-
Splitting PDFs
- Navigate to the split section.
- Select a PDF file.
- Enter the desired page ranges for splitting.
- Choose an output directory.
- Click "Split" to process. Success or error messages will appear.
-
Merging PDFs
- Navigate to the merge section.
- Add PDF files to the merge list.
- Select an output directory.
- Click "Merge" to combine files. Status messages will be shown.