DocuVieware Reference Guide
SetCurrentZoom
Reference Guides > JavaScript API > Actions > Zoom > SetCurrentZoom
 SetCurrentZoom

This function sets the viewer zoom level from a zoom value.

SetCurrentZoom: function (docuViewareID, zoom)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want change the zoom value of.
zoom
The zoom level to set. 1 for 100%, 1.5 for 150%, 2 for 200%...

Return Value

1 if error, 0 if success.