在pdf.worker.js该文件下’Sig’这个参数所在地,注释掉相应的代码
var parent = Annotation.prototype;
Util.inherit(WidgetAnnotation, Annotation, {
isViewable: function WidgetAnnotation_isViewable() {
// if (this.data.fieldType === 'Sig') {
// warn('unimplemented annotation type: Widget signature');
// return false;
// }
return parent.isViewable.call(this);
}
});
本文介绍了如何解决使用pdf.js库时遇到的PDF文件签名不显示的故障。关键在于找到pdf.worker.js文件中与'Sig'参数相关的代码并进行适当修改。

被折叠的 条评论
为什么被折叠?



