Comment out a few lines of code in pdf.worker.js as follows:

// if (data.fieldType === "Sig") {
// data.fieldValue = null;
// this.setFlags(_util.AnnotationFlag.HIDDEN);
// }
Copy the code

Should be commented after the electronic chapter can shows (note: before using 2.0.943 version is no problem, later in the latest version, commented that couldn’t display a few lines of code electronic) very not easy to see on CSDN “@ @” salt sweetness bloggers publishing solution, finally to solve the problem, the solution is as follows:

Find the error code in pdf.worker.js:

(0, _util.warn)('Unimplemented widget field type "' + fieldType + '"' + "falling back to base field type.");
return new WidgetAnnotation(parameters);
Copy the code

This is where the console reported the error, calling fieldType->Sig the same thing

And then block it, as follows

if(fieldType! = ='Sig'){
    (0, _util.warn)('Unimplemented widget field type "' + fieldType + '"' + "falling back to base field type.");
    return new WidgetAnnotation(parameters);
}
Copy the code

Then open the PDF and the e-stamp will display…