Sectors: Finance • Information Technoloy • Government • Healthcare • Industries • Education • (show all)
Please download the free utility from here: AspriseJavaPDF-free.jar.
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();
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.