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

Free Support Forum - aspose.com

WARNING: Exception : FrameworkException: Not enough memory to process jpeg file. getting error

Hello
I am using to convert to pdf to doc, docx , html , svg , and many more.(in java)

Document doc = null;
try {
doc = new Document(“C:\Users\admin\Desktop\Wed Dec 01 11 12 15 IST 2021\GeoEye_GeoEye1_50cm_8bit_RGB_DRA_Mining_2009FEB14_8bits_sub_r_15.pdf”);
DocSaveOptions options = new DocSaveOptions();
options.setFormat(DocSaveOptions.DocFormat.DocX);// doc and docx
options.setMode(DocSaveOptions.RecognitionMode.Flow);
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
doc.save(“C:\Users\admin\Desktop\Wed Dec 01 11 12 15 IST 2021\GeoEyeghgth_GeoEye1_50cm_8b.html”, saveOptions);
doc.close();
} catch (Exception e) {
// TODO: handle exception
System.out.println(e.getMessage()+“ex”);
}catch (Error e) {
// TODO: handle exception
System.out.println(e.getMessage()+“error”);
}

but getting error internally : FrameworkException: Not enough memory to process jpeg file.
i also attached file link :https://drive.google.com/file/d/1WmgU32JnK4UUKpYE6q4uZT18ZC3WW3EQ/view?usp=sharing .

How can handle this ?
Thanks

@David_jack

We have tested the scenario using the latest version of Aspose.PDF for Java 21.11 and have not found the shared issue. So, please use Aspose.PDF for Java 21.11.

We suggest you please increase Java heap size at your end. Moreover, depending upon the PDF document complexity, Aspose.PDF may need more memory for document conversion.

@tahir.manzoor
I will try above problem .

but a file not converted in html / Doc (this work in eclipse workspace but not in jar )
Document doc = null;
try {
doc = new Document(“C:\Users\admin\Desktop\image\Airbus-Spot6-50cm-St-Benoit-du-L (1).pdf”);
);

		HtmlSaveOptions saveOptions = new HtmlSaveOptions();
	
					doc.save("C:\\Users\\admin\\Desktop\\image\\Airbus.html", saveOptions);
					System.out.println("Wait4");
		doc.close();

	} catch (Exception e) {
		
	}

file Link https://drive.google.com/file/d/1WS8-69uWDP-WTi4hCrRsh-MYu35mw6l0/view?usp=sharing
i also check your online converter

@David_jack

We have logged this problem in our issue tracking system as PDFJAVA-41093. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.