mirror of
https://gitee.com/Donal/ofd.js.git
synced 2024-12-01 19:39:42 +08:00
Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
commit
e927d10157
@ -154,7 +154,8 @@ export const renderPage = function (pageDiv, page, tpls, fontResObj, drawParamRe
|
||||
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') {
|
||||
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,stamp.stamp.stampAnnot['pfIndex']);
|
||||
const oid = Array.isArray(stamp.stamp.stampAnnot)?stamp.stamp.stampAnnot[0]['pfIndex']:stamp.stamp.stampAnnot['pfIndex'];
|
||||
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,oid);
|
||||
pageDiv.appendChild(element);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user