QuestionsCategory: PDF Light Viewerhow to disable automatic zoom
Susan Pinto asked 4 weeks ago

HI,
I have a customer is requesting for the AUTOMATIC zoom to be disable however still will like to have the option for user.
The CMS only gives me the option to disable or enable the button.
 

Question Tags:
1 Answers
super Staff answered 4 weeks ago

Hello Susan,
You can use the following javascript to “turn off” zoom initially during the page load:

PDFLightViewerApp.zoom.disable( jQuery('.js-pdf-light-viewer') );

After that zoom can be enabled by clicking on the zoom link or by calling:

PDFLightViewerApp.zoom.enable( jQuery('.js-pdf-light-viewer') );
magnetworx replied 2 weeks ago

Tried to add it to the page with no luck, where would this go?