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

Free Support Forum - aspose.com

OutOfMemoryError when converting Docx to PDF in Android

Hello Team,

We’ve started using the Aspose Words in our Android tablet solution, we implemented the doc to pdf conversion as mentioned in the Aspose.Words API Documentation. When we tested the sample files most of the conversions goes through but as we test the docx files with high quality images in it we get the java.lang.OutOfMemoryError.

Can you help us out with the Issue with by providing any code optimization to handle these type of files ?

Also what would be Ideal configuration of the Android device that Aspose recommends for file conversion?

Thanks and Regards,


Thanks for your inquiry. Please use SaveOptions.MemoryOptimization to perform memory optimization. Hope this helps you.

If you still face problem, please attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.