Skip to content

XeroHero/JImg2PDF

Repository files navigation

JImg2PDF

A simple Java utility to convert multiple images into a single PDF file.

Features

  • 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

Requirements

  • Java 11 or higher
  • Maven or Gradle (for building from source)

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.jar

Usage

java -jar JImg2PDF.jar <output.pdf> <image1> [<image2> ...]

Examples

Convert multiple images to a single PDF:

java -jar JImg2PDF.jar output.pdf image1.jpg image2.png image3.bmp

Convert all images in a directory (on Unix-like systems):

java -jar JImg2PDF.jar output.pdf images/*

Screenshots

Main Application Window

Main Window

Adding Multiple Images

Adding Images

Image Preview and Selection

Image Preview

PDF Generation Progress

Progress

Success Notification

Success

Generated PDF Preview (Page 1)

PDF Page 1

Generated PDF Preview (Page 2)

PDF Page 2

Generated PDF Preview (Page 3)

PDF Page 3

Supported Image Formats

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • BMP (.bmp)
  • GIF (.gif)
  • TIFF (.tif, .tiff)

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

JAR Tool to generate PDF files from Image files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published