Hi,
I'm having this exception using the JPEG device while converting PDF to JPEG images:
com.aspose.ms.System.ab: Object not found
at com.aspose.pdf.a.a.d.a(Unknown Source)
at com.aspose.pdf.a.a.d.a(Unknown Source)
at com.aspose.pdf.a.c.aa.K_(Unknown Source)
at com.aspose.pdf.a.c.aa.E(Unknown Source)
at com.aspose.pdf.a.c.aa.U(Unknown Source)
at com.aspose.pdf.a.b.d.b.c.f.a(Unknown Source)
at com.aspose.pdf.a.b.d.b.c.f.a(Unknown Source)
at com.aspose.pdf.az.a(Unknown Source)
at com.aspose.pdf.ImageDevice.a(Unknown Source)
at com.aspose.pdf.JpegDevice.processInternal(Unknown Source)
at com.aspose.pdf.PageDevice.process(Unknown Source)
I'm using the sample code below:
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(pdfFile);for (int pageCount = 1; pageCount <= pdfDocument.getPages().size(); pageCount++) { java.io.OutputStream imageStream = new java.io.FileOutputStream("Converted_Image" + pageCount + ".jpg"); com.aspose.pdf.Resolution resolution = new com.aspose.pdf.Resolution(300); com.aspose.pdf.JpegDevice jpegDevice = new com.aspose.pdf.JpegDevice(resolution, 100); jpegDevice.process(pdfDocument.getPages().get_Item(pageCount), imageStream); imageStream.close(); }
Please find attached the file that I'm trying to convert.
Thank you in advance.