Java PDF Reader/Writer Library/Component/API

Create, manipulate (read and write), disassemble PDF files easily.

Create PDF Files from Images with Asprise Java PDF Reader (with Text Extract)/Writer Library

Sample code:

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();

Demo

For example, two images in JPEG format:

  1. girl.jpg [108 Kb]
  2. sky.jpg [199 Kb]
can be writen to a single PDF file as show below:



[227 Kb]

For more details on Asprise PDF library, please read Developer's Guide or view the Javadoc.


< < Go back to product page