NoteThis page contains release notes for GroupDocs.Viewer for Java 17.5.1.
This release includes one new feature and two bug fixes.
|VIEWERJAVA-1601||Add method to clean up temporary files||New Feature|
|VIEWERJAVA-1582||NullPointerException when rendering PDF as HTML||Bug|
|VIEWERJAVA-1568||Performance degradation during consequent iterations through the same documents||Bug|
NoteThis section lists public API changes that were introduced in GroupDocs.Viewer for Java 17.5.1. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in GroupDocs.Viewer which may affect existing code. Any behavior introduced that could be seen as a regression and modifies existing behavior is especially important and is documented here.
While rendering documents, GroupDocs.Viewer creates temporary files which were removed automatically after each operation. As removing temporary files is time-consuming operation new method **clearTempFiles **was introduced. This method is thread-safe and can be called any time so it won’t affect documents rendering. GroupDocs.Viewer uses default system temporary folder to store temp files, it can be changed by setting temporary directory in process properties e.g.
How to clean up temporary files
// Setup GroupDocs.Viewer config ViewerConfig config = new ViewerConfig(); config.setStoragePath(STORAGE_PATH); // Create image or html handler ViewerImageHandler handler = new ViewerImageHandler(config); // Cleanup temporary files handler.clearTempFiles();
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.