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

Free Support Forum - aspose.com

java.lang.OutOfMemoryError: Argument path cannot be empty- while converting pdf to png

Hi


Getting bellow error while generating png from PDF. Attached PDF for your reference.

Exception in thread “main” java.lang.OutOfMemoryError: Argument path cannot be empty
at com.aspose.pdf.internal.p354.z44.m1(Unknown Source)
at com.aspose.pdf.internal.p354.z44.(Unknown Source)
at com.aspose.pdf.internal.p624.z23.m1(Unknown Source)
at com.aspose.pdf.internal.p561.z1.m1(Unknown Source)
at com.aspose.pdf.internal.p554.z20.m2(Unknown Source)
at com.aspose.pdf.internal.p554.z20.m4(Unknown Source)
at com.aspose.pdf.internal.p554.z7.m2(Unknown Source)
at com.aspose.pdf.internal.p554.z7.m1(Unknown Source)
at com.aspose.pdf.devices.z1.m1(Unknown Source)
at com.aspose.pdf.devices.z1.m1(Unknown Source)
at com.aspose.pdf.devices.ImageDevice.m1(Unknown Source)
at com.aspose.pdf.devices.PngDevice.processInternal(Unknown Source)
at com.aspose.pdf.facades.PdfConverter.getNextImage(Unknown Source)
at com.aspose.pdf.facades.PdfConverter.getNextImage(Unknown Source)
at com.pearson.ltg.common.preview.imageconverter.PDFDocumentConverter.pdfConverter(PDFDocumentConverter.java:62)
at com.pearson.ltg.common.preview.service.PreviewImageUploader.getConvertedList(PreviewImageUploader.java:317)
at com.pearson.ltg.common.preview.service.PreviewImageUploader.processItem(PreviewImageUploader.java:146)
at com.pearson.ltg.common.preview.service.DocumentPreviewGenerationService.generatePreviewForSingleItem(DocumentPreviewGenerationService.java:141)
at com.pearson.ltg.common.preview.service.DocumentPreviewGenerationService.startConversionJob(DocumentPreviewGenerationService.java:62)
at com.pearson.ltg.common.preview.main.MainPreviewImage.main(MainPreviewImage.java:36)

Hi Upendra,


Thanks
for using our API’s.<o:p></o:p>

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-35047. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

The issues you have found earlier (filed as PDFNEWJAVA-35047) have been fixed in Aspose.Pdf for Java 11.3.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.