Recently we use this PPT file (because Forum doesn’t allow PPT file, so I zip it as 7z) to test Aspose PPT2PDF, our code is very simple
//Usage: excel2pdf("source.xlsx", "target.pdf")
public static void excel2pdf(String excelFilename, String targetPDFname)
{
try
{
final Workbook workbook = new Workbook(excelFilename);
workbook.save(targetPDFname);
}
catch (Exception e)
{
e.printStackTrace();
}
}
However, during test, the RAM usage of this test file is 640 MB. Is it normal?
[2023-09-26 14:45:04.784 @ 60868 / 466432] ERROR [AsposeConverter] : .convertToPDF(): Throwable occured.
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(DataBufferByte.java:76) ~[?:1.8.0_232]
at java.awt.image.Raster.createInterleavedRaster(Raster.java:266) ~[?:1.8.0_232]
at java.awt.image.BufferedImage.(BufferedImage.java:391) ~[?:1.8.0_232]
at com.aspose.slides.internal.wl.t8.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.internal.wl.t8.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.internal.wl.t8.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.internal.vr.t8.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.internal.vr.t8.(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.bcy.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.bcy.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.Picture.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.fbj.(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.cn.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.cn.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.qhv.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.qhv.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.ok4.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.ev.sj(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.ev.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.zuh.t8(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.zuh.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.zuh.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.zuh.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.Slide.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.vfa.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.vfa.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.Presentation.b6(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at com.aspose.slides.Presentation.save(Unknown Source) ~[aspose-slides-23.7-jdk16.jar:23.7]
at ff.converter.helper.AsposeHelper.convertPptToPDF(AsposeHelper.java:181)