From 25ddff8630a3473aaf9121a4b97d076c02211aae Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Mon, 6 Dec 2021 17:04:17 +0800 Subject: [PATCH] commit --- public/static/pdf/web/viewer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/static/pdf/web/viewer.js b/public/static/pdf/web/viewer.js index a3e5c6fed..47d3d46bc 100644 --- a/public/static/pdf/web/viewer.js +++ b/public/static/pdf/web/viewer.js @@ -6694,6 +6694,11 @@ var PDFPageView = function () { //获取页面最大长度 // var page_height = Math.max(document.body.scrollHeight, document.body.clientHeight+350); +// //获取页面最大宽度 +// var page_width = parseInt(canvasWrapper.style.width); +// //获取页面最大长度 +// var page_height = parseInt(canvasWrapper.style.height); + var page_height = parseInt(textLayerDiv.style.height) //获取pdf页面长度 var pdf_page =document.getElementById("viewer"); //2021/12/5 分辨率不同的情况会出现问题