From 71d716c6975956fab2cd95ebce8b9df41e36398c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 19 Dec 2025 19:04:27 +0100 Subject: [PATCH] try #7839 @1.5 --- js/libs/fluidbook/fluidbook.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index d49f1ff3..91eff64c 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -767,7 +767,7 @@ Fluidbook.prototype = { }, 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) { @@ -880,8 +880,15 @@ Fluidbook.prototype = { 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 { -- 2.39.5