From 5091260ddd8bd771ab9f5cf52d9a384bfda75c62 Mon Sep 17 00:00:00 2001 From: Donal Date: Fri, 18 Sep 2020 14:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BC=A0=E5=85=A5=E7=94=BB?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=AD=BE=E7=AB=A0=E6=97=B6=E7=9A=84boundary?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/ofd/ofd_render.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/ofd/ofd_render.js b/src/utils/ofd/ofd_render.js index a760639..49f3b7a 100644 --- a/src/utils/ofd/ofd_render.js +++ b/src/utils/ofd/ofd_render.js @@ -102,8 +102,8 @@ export const renderPage = function (pageDiv, page, tpls, fontResObj, drawParamRe if (stamp.type === 'ofd') { renderSealPage(pageDiv, stamp.obj.pages, stamp.obj.tpls, true, stamp.stamp.stampAnnot, stamp.obj.fontResObj, stamp.obj.drawParamResObj, stamp.obj.multiMediaResObj, stamp.stamp.sealObj.SES_Signature, stamp.stamp.signedInfo); } else if (stamp.type === 'png') { - stamp.obj.boundary = converterBox(stamp.obj.boundary); - let element = renderImageOnDiv(pageDiv.style.width, pageDiv.style.height, stamp.obj.img, stamp.obj.boundary, stamp.obj.clip, true, stamp.stamp.sealObj.SES_Signature, stamp.stamp.signedInfo); + let sealBoundary = converterBox(stamp.obj.boundary); + let element = renderImageOnDiv(pageDiv.style.width, pageDiv.style.height, stamp.obj.img, sealBoundary, stamp.obj.clip, true, stamp.stamp.sealObj.SES_Signature, stamp.stamp.signedInfo); pageDiv.appendChild(element); } }