Skip to end of metadata
Go to start of metadata
Contents Summary
 

Reducing Memory Consumption of Documents

Reduce memory consumption of PDF format

GroupDocs.Metadata API allows working with PDF format with less memory consumption. Please note that the PdfFormat class implements the Closeable interface and it's necessary to call the close() method when you're done working with its instance.

Following code snippets uses less memory while working with PDF format.

If you are loading a PDF file from a stream, it's up to you to close the stream when the file is not needed anymore.

The same rule works if you are saving the output file into a stream.

Reduce memory consumption of Word formats

GroupDocs.Metadata API allows working with Word formats with less memory consumption. Please note that the DocFormat class implements the Closeable interface and it's necessary to call the close() method when you're done working with its instance.

Following code snippets uses less memory while working with Word formats.

If you are loading a Word document from a stream, it's up to you to close the stream when the file is not needed anymore.

The same rule works if you are saving the output file into a stream.

Reduce memory consumption of Excel formats

GroupDocs.Metadata API allows working with Excel formats with less memory consumption. Please note that the XlsFormat class implements the Closeable interface and it's necessary to call the close() method when you're done working with its instance.

Following code snippets usess less memory while working with Excel formats.

If you are loading an Excel document from a stream, it's up to you to close the stream when the file is not needed anymore.

The same rule works if you are saving the output file into a stream.

Reduce memory consumption of PowerPoint formats

GroupDocs.Metadata API allows working with PowerPoint formats with less memory consumption. Please note that the PptFormat class implements the Closeable interface and it's necessary to call the close() method when you're done working with its instance.

Following code snippets uses less memory while working with PowerPoint formats.

If you are loading a PowerPoint document from a stream, it's up to you to close the stream when the file is not needed anymore.

The same rule works if you are saving the output file into a stream.

Labels
  • No labels