A simple Java utility to convert multiple images into a single PDF file.
- Convert multiple images (JPG, PNG, BMP, GIF, TIFF) into a single PDF
- Preserves original image quality and dimensions
- Simple command-line interface
- Lightweight and fast
- Java 11 or higher
- Maven or Gradle (for building from source)
# Clone the repository
git clone https://github.com/yourusername/JImg2PDF.git
cd JImg2PDF
# Build the JAR file
./gradlew build
# The JAR will be available at: build/libs/JImg2PDF-1.0-SNAPSHOT.jarjava -jar JImg2PDF.jar <output.pdf> <image1> [<image2> ...]
Convert multiple images to a single PDF:
java -jar JImg2PDF.jar output.pdf image1.jpg image2.png image3.bmpConvert all images in a directory (on Unix-like systems):
java -jar JImg2PDF.jar output.pdf images/*- JPEG (.jpg, .jpeg)
- PNG (.png)
- BMP (.bmp)
- GIF (.gif)
- TIFF (.tif, .tiff)
This project is licensed under the MIT License - see the LICENSE file for details.







