Coders Packet

PDF to JPG Converter in Java

By Chetan Singh

For building the project PDF to JPG converter. The code is in Java language. In this project you just have to add three libraries (pdfbox-2.0.16.jar, fontbox-2.0.16.jar, commons-logging-1.2.jar)

For building the project PDF to JPG converter, I have used eclipse as an IDE. The code is in Java language.
In this project you just have to add three libraries (pdfbox-2.0.16.jar, fontbox-2.0.16.jar, commons-logging-1.2.jar)
So basically this code takes the pdf document from the directory which user will provide and then convert it into jpg format in a destination folder.
I have used 300 dpi here (dpi : stands for dot per inches) which is directly proportional to the quality of image.
User have to input the directory of source file in .pdf format which is to be converted in .jpg format.

Then the code will ask you for the destination file where the .jpg file will be generated.

The output will be shown in your console like this.

Output of converter

Download project

Reviews Report

Submitted by Chetan Singh (Chetan)

Download packets of source code on Coders Packet