Link

Converting an Image to a PDF file

Convert a Java BufferedImage into a PDF file

JDeli allows you to convert a Java BufferedImage into a PDF file. This uses the JDeli class.

File myNewPdfFile = new File("file.pdf");
JDeli.write(myBufferedImage, "pdf", myNewPdfFile);

Convert an existing Image File into a PDF file

JDeli.convert(File inFile, File outFile);

JDeli.convert(InputStream inFile, OutputStream outfile, String format);

byte[] outputData = JDeli.convert(byte[] inputData, String format);

JDeli will work out the image file format automatically. JDeli also provides overloaded convert methods. These can be used for image processing (scale, rotate, etc).