Free Support Forum - groupdocs.com

Groupdocs Viewer for Java

Hello,

We have been evaluating Groupdocs viewer for Java for integration with our DMS product. However we have found the attached issues and would like to know whether we are missing something.

Kindly help.


Regards,
Krishna

Hello Krishna,

Thank you for your inquiry.

Regarding application slowness:

By default, when you open a web-page with GroupDocs.Viewer widget, and the target document is invoked (for displaying), on the server-side GroupDocs.Viewer converts the document to the images and text (for the image-based rendering) or to the HTML, images, fonts, and CSS (for the HTML-based rendering). Only when this conversion process is finished, GroupDocs.Viewer begins to transmit data to the client-side and end-user can see content of the document in the browser. That's why it takes so much time - GroupDocs.Viewer needs to convert all document, and they are really big. The conversion speed depends on the performance of the server - CPU, memory, storage.

There are some other methods to increase performance:
1. Try to use HTML-based rendering mode ("useHtmlBasedEngine = true" method) if it is suitable for you and there are no document distortions.
2. Use "preloadPagesCount = 1" method. When using this method GroupDocs.Viewer will begin to load document to the client-side when first page of the document will be converted. When this method is not used, GroupDocs.Viewer converts all pages of a document and only then sends it to the client-side.
3. Use "minimumImageWidth = (value)" method. If it set, the Viewer will load page images with the specified width from the server when starting. It will not load page images from the server again after zooming if the current page image size is smaller than the value specified and if the original (not scaled) page image size is smaller than the value specified. It means that in most cases the GroupDocs.Viewer will load page images only once and will not reload them after zooming in/out.
4. If this is possible for your business-logic, disable thumbnails ("showThumbnails = false").
5. If this is possible for your business-logic, disable ability to select text by using "supportTextSelection = false" method.
6. Use "showViewerStyleControl = true" method - it will disable "double page flip" option and will increase performance.

Note: All these parameters you can configure in the application.properties file.

Regarding issues with the documents:
Could you please share these documents with us and we will investigate and test them.


-----------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+