Convert the PDF Document to Specified Images

Skip to end of metadata
Go to start of metadata
Aspose.Pdf.Kit now supports a new feature to convert each page of a PDF document to a image. This feature would also allow developers to gain more flexibility over the PDF documents while editing using Aspose.Pdf.Kit. Converting a PDF to images becomes very handy task if you work with Aspose.Pdf.Kit. Developers can use PDF Converter to transform each page of a pdf file to images. BMP, JPEG, PNG and TIFF is supported now.

Users also can use PDF Converter to transform all the pages of a pdf file to a single TIFF image, each page transform to a tag of the TIFF image.

Convert Each page of a pdf Document to a image
[Java]
PdfConverter converter = new PdfConverter();
converter.bindPdf("text.pdf");
converter.doConvert();
String prefix = "D:/Test/";
String suffix = ".png";
int imageCount = 1;
while (converter.hasNextImage())
{
   converter.getNextImage(prefix + imageCount + suffix, ImageType.PNG);
   imageCount++;
}
 
Convert a Pdf Document to a Single TIFF Image
[Java]
PdfConverter converter = new PdfConverter();
converter.bindPdf("text.pdf");
converter.doConvert();
converter.savaAsTIFF("text.tif");
 
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.