Free Support Forum -

Automatically set viewer mode to OnePageInRow



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);

Hello John,

Thank you for your inquiry.

We have tested the scenario and have managed to reproduce the same issue at our side. We have logged this problem in our issue tracking system as VIEWERJAVA-1052. Also we have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

As temporary solution you can set "viewerStyle" parameter in file as :

We apologize for the inconvenience.


Best regards,
Evgen Efimov
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


The issues you have found earlier (filed as VIEWERJAVA-1052) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by GroupDocs Notifier.