I am using docx4j to generate word and ppt reports from a web application. We are using both create new report and loading a template and creating a report approach for creating the reports. While using the templates we find that the server throws an out of memory error very often.
We load the template using
- Code: Select all
PresentationMLPackage pMLPackage =
(PresentationMLPackage)OpcPackage.load(new java.io.File(inputfilepath));
and save it finally using
- Code: Select all
pMLPackage.save(new File(System.getProperty("user.dir") + "/Outputs/BA_Multiple_INS_OUT.pptx"));
We do not close ...