},
getPhysicalPageNumberOfSide: function (side, strict) { // Side should be 'left' or 'right'
- if (this.elasticslide!==undefined && this.elasticslide.isActive()) {
+ if (this.elasticslide !== undefined && this.elasticslide.isActive()) {
return this.currentPage;
}
if (undefined === strict) {
var pdf;
var pdfName;
- if (this.settings.pages != this.contentlock.getMaxPage()) {
- pdf = this.service.getBaseURL(true) + 'e/' + this.settings.id + '-' + this.settings.cid + '/1-' + this.contentlock.getMaxPage();
+ let service = 'e';
+ if (print) {
+ service = 'ep';
+ }
+
+ if (this.support.webview && print) {
+ pdf = this.service.getBaseURL(true) + service + '/' + this.settings.id + '-' + this.settings.cid + '/1-' + this.settings.pages;
+ } else if (this.settings.pages != this.contentlock.getMaxPage()) {
+ pdf = this.service.getBaseURL(true) + service + '/' + this.settings.id + '-' + this.settings.cid + '/1-' + this.contentlock.getMaxPage();
} else if (this.settings.pdfName.substr(0, 4) === 'http') {
pdf = this.settings.pdfName;
} else {