Sectors: Finance • Information Technoloy • Government • Healthcare • Industries • Education • (show all)
import com.asprise.util.pdf.PDFImageWriter;
PDFImageWriter writer = new PDFImageWriter(new FileOutputStream("new.pdf"));
writer.open();
writer.addImage("C:\\1.jpg");
writer.addImage("C:\\2.png");
writer.close();
For example, two images in JPEG format:
can be writen to a single PDF file as show below:For more details on Asprise PDF library, please read Developer's Guide or view the Javadoc.