Convert Image TO PDF

Download Developer API Guide

ImageToPDF Object Description

This object is used to convert images into PDF.

// Create an Object
ImageToPDF imageToPdf = new ImageToPDF();
// Covert to Pdf
imageToPdf.convert("C:\\Users\\Desktop\\input.jpg", "C:\\Users\\Desktop\\output.pdf");


Properties


ConversionTimeOut Property

Set the file coversion time out property. Default is 5 min.

Type

Int (minute)

Usage

// Create an Object
ImageToPDF imageToPdf = new ImageToPDF();
// Set the ConversionTimeOut Properties
imageToPdf.setConversionTimeOut(1);
// Covert to Pdf
imageToPdf.convert("C:\\Users\\Desktop\\input.jpg", "C:\\Users\\Desktop\\output.pdf");