Page Display Mode

49 views
Skip to first unread message

Matt Parizeau

unread,
May 28, 2014, 1:36:28 PM5/28/14
to
Q:

In "Options" there is "Single page" and "Double page" mode. But when tapped on single page or double page mode the document pages are of the same width and height and nothing changes. How can we see two pages on mobile screen of any document on selecting Double Page mode.

A:

The option is actually for the landscape display mode, i.e. it only affects the number of pages shown when the device is in the landscape orientation.

If you wanted to override this to always show two pages regardless of orientation then you could modify MobileReaderControl.js directly. Look for the setPageMode function and change it to just have the following lines:

this.nPagesPerWrapper = 2;
this.docViewer.SetPagesPerCanvas(this.nPagesPerWrapper);

Alternatively if you wanted to switch between 1 and 2 pages regardless of the orientation just change it to:

if (this.pageDisplay === this.pageDisplayModes.Single) {
   
this.nPagesPerWrapper = 1;
} else if (this.pageDisplay === this.pageDisplayModes.Double) {
   
this.nPagesPerWrapper = 2;
}

this.docViewer.SetPagesPerCanvas(this.nPagesPerWrapper);

Reply all
Reply to author
Forward
0 new messages