After using Slides to convert PPT to PDF, after completion I can see a lot of slide-related classes in my JVM heap.
Here is my Java code for doing the document conversion:
public void convert((final InputStream is, final OutputStream os) throws Exception {
Presentation doc = new Presentation(is);
doc.save(os, SaveFormat.Pdf, PDF_SAVE_OPTIONS);
}
I’ve attached two heap dumps, 5 minutes apart. As far as I am concerned, all the doc.save operations have finished and the input and output streams have been closed.
Any help or insight appreciated. I assume some of this is related to class loading (e.g. fonts). But I just want to confirm I am not doing anything wrong in the save process or need to call anything afterwards.