Groupdocs Viewer - Trigger Customization

Hi there,


My application requires custom triggers for the viewer.

I followed:
http://groupdocs.com/docs/display/viewerjava/GroupDocs.Viewer+for+Java±+Triggers+Customization


However, I need help in displaying number of pages, similar to (1/5).

Also, is there a way to “fit to width” and “fit to height” and “100% fit” ?

Hello,

Thank you for your request.

Unfortunately, at the moment there is no way to "fit to width" and "fit to height" and "100% fit" via js triggers. You can set these parameters only in application.properties file. Please check this article for load helper parameters.

About displaying number of pages. You can independently reorder css styles for Viewer window to achieve the result that you want. The Viewer library doesn't provide any specific methods or events for this.

--------

Best regards,
Evgen Efimov

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