Free Support Forum - aspose.com

Pdf.Kit.PdfExtractor ExtractImage function - processing problems with large number of images

I am having a problem with the ExtractImage function of the PdfExtractor and could use some feedback. My problem is that if I have a large Pdf document with lots of images the ExtractImage function takes a long time to run. I want it to stop at the first image, but I’m not sure how to make it do that. I tried searching 1 page at a time, but if the Pdf contatins no images it takes forever to search one page at a time. Any suggestions?

Hi,

Thank you for considering Aspose.

You are quite right that the function should return a value as feedback.

Now we are rewriting some code related to the PdfExtractor, and instead of the old methods "void GetNextImage(...)", "bool GetNextImage(...)"s will be included in our next release.

And if you need this urgently, then please feel free to let us know and we could offer you a Beta version.

Thanks,