We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Extract images from pdf page (NOT a whole image for the page)

Received : 2007/11/02 04:13:36
Message : Having a resolution of 210 dpi (necessary for the barcode to be able to recognise robustly), your image extraction of the whole page takes to long... We need it faster. I really only need to extract the barcode located at the bottom of the page. Is it possible to only convert parts of the pdf page into a image?

This message was posted using Aspose.Live 2 Forum


Thank you for considering Aspose.

I think this type of image extracting is not supported in Aspose. I will discuss
with developers and let you know if we can support it.



After discussing with the developer I found that we can't support extraction of image at a specified location. What you can do that if you know the page number on which that Barcode image is present in the Pdf then Extract the images, but here specifically defining an image to extract is not supported. Here is a piece of code that can extract image from a specified page by setting Start and End page properties of PdfExtractor class.


PdfExtractor extractor = new PdfExtractor();
extractor.StartPage = 1;
extractor.EndPage = 2;
String prefix = @"D:\Test\Image";
String suffix = ".jpg";
int imageCount = 1;
while (extractor.HasNextImage())
extractor.GetNextImage(prefix + imageCount + suffix);

If you need more help, please do let us know.