Free Support Forum -

Groupdocs Viewer - Trigger Customization


Hi there,

My application requires custom triggers for the viewer.

I followed:±+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” ?


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 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
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+