extractImage from InputStream Read error

Hi,

Currently evaluating aspose and got an issue with basic usage :

FileInputStream fis = new FileInputStream(“c://test.pdf”);
PdfExtractor extractor = new PdfExtractor();
extractor.bindPdf(fis);
extractor.extractImage();
got error :

Exception in thread “main” java.lang.Exception: Read error
at com.aspose.pdf.kit.PdfViewer.openPdfFile(Unknown Source)
at com.aspose.pdf.kit.cy.a(Unknown Source)
at com.aspose.pdf.kit.PdfExtractor.extractImage(Unknown Source)
at com.inkoming.base.ImageExtractor.main(ImageExtractor.java:155)

The strange thing is that the same program is working when passing directly “c://test.pdf” to bindPdf method (without inpustream)

Bug ?

Hi Fatih,

I have reproduced this problem at my end and logged it as PDFKITJAVA-28450 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,