DocuVieware Reference Guide
GetPageCount
Reference Guides > JavaScript API > Actions > Document > GetPageCount
 GetPageCount

This function retrieves the page count for the currently loaded document into the specified DocuVieware™ viewer.

GetPageCount: function (docuViewareID)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.

Return Value

0 if error (for instance if there is no document loaded), the loaded document page count otherwise.