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

This function sets the zoom level automatically in order to fit the document to the viewer.

SetZoomFitViewer: function (docuViewareID)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to set the zoom mode in.

Return Value

1 if error, 0 if success.