getDocIndex()
Returns the index value of the currently viewed document in the series of multiple documents that are loaded into the viewer.
This method applies only when multiple documents are loaded into the viewer by using the doc<N> HTML parameter or the JavaScript equivalent.
The index starts at 1, which represents the first document in the list.
Sample syntax
var currentdoc = ViewONE.getDocIndex()