Clear the cache

hi,
In android platform, I use aspose-cells-9.0.0 java library to convert an Excel file into PDF.
I would like to ask a question, the cells library which has a function of clearing the cache?


Source Snippet:

for (String filepath : files) {
Workbook workbook = new Workbook(filepath);
workbook.save(pdfPath, FileFormatType.PDF);
}

# Cyclic create the workbook object, will cause a memory leak?

Hi there,


Thank you for considering Aspose APIs.

First of all, I believe you meant to release the resources once the process is complete. If so, please note that Android works similar to Java that is; garbage collection is done automatically therefore memory leak isn’t possible. However, if you want to be sure of it, you can call the Workbook.dispose method in the for structure after saving the Workbook.

Hope this helps.