Hi,
I am automatically trying to set the viewer mode to “window.groupdocs.OnePageInRow” on document.ready or window.resize, to equally space the document between the two sides of an iframe. Ex below
versus the additional file attached which is how the document viewer usually renders.
I have tried something like this within a script block but it does not work:
$(document).ready(function () {
$("
#test
").groupdocsViewer(“setViewerMode”, window.groupdocs.OnePageInRow); });
$(window).resize(function () {
$("
#test
").groupdocsViewer(“setViewerMode”, window.groupdocs.OnePageInRow); });