Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Donal 2020-10-16 10:27:41 +08:00
commit e927d10157

View File

@ -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);
}
}