Checking the number of images in a PDF document

Hello,

How can I check if a PDF does NOT contain images?
If I use ExtractImage() and no images are present, then the call to HasNextImage() returns an error:

“Object reference not set to an instance of an object”

Thanks for a quick reply.

Hans


This message was posted using Page2Forum from PdfExtractor.ExtractImage Method - Aspose.Pdf.Kit for .NET and Java

Hi Hans,

This issue is already logged in our issue tracking system as PDFKITNET-10313. We’ll update you via this forum as the issue is resolved. However, you can use the workaround given in the following article:

Find whether PDF file contains images or text only

I hope this helps.
Regards,

The issues you have found earlier (filed as 10313) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.