Java PDF Reader/Writer Library/Component/API

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

Free Utility for Rasterizing PDF Pages into Images

Please download the free utility from here: AspriseJavaPDF-free.jar.

Sample code:

import com.asprise.util.pdf.PDFToImage;

PDFToImage pdfToImage = new PDFToImage("my.pdf");

  for(int i=1; i<=pdfToImage.countPages(); i++) {
    BufferedImage img = pdfToImage.getImage(i);
    ImageIO.write(img, "jpg", new File(args[1], args[2] + i + ".jpg"));
  }

pdfToImage.close();

For more details, please view the Javadoc.

Command line tool

java -jar AspriseJavaPDF-free.jar [Pdf file] [target directory] [file name prefix]

For example, java -jar AspriseJavaPDF-free.jar my.pdf . my- will extract pages from PDF file my.pdf into currently directory, my-1.jpg, my-2.jpg, and so on.


Click here to go back to Asprise Java PDF Library.


Note: This utility is open source software under GPL license. You can freely use it to develop system for your own company. You are not allowed to sell your software commercially to others if you bundle this utility.