How to realize pdfjs display Electronic signature
This article introduces the "how to achieve pdfjs display electronic signature" related knowledge, in the actual case of the operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
1. Download pdfjs the version I use is pdfjs-2.7.570-es5-dist; decompression, renamed pdfjs-dist
2. Add pdfjs-dist to public, and use the following
Pdf_src is a link to a pdf file, such as https://my.oschina.net/liyoungs/test.pdf;
3, then the signed pdf file will report an error Warning: Unimplemented widget field type "Sig", falling back to base field type.
The solution is as follows:
Search for Sig faces in pdfjs-dist\ build\ pdf.worker.js, about 30530 lines
_ this3.setFlags (_ util.AnnotationFlag.HIDDEN)
Remove the parameter _ util.AnnotationFlag.HIDDEN; and modify it as follows:
_ this3.setFlags (); "how to achieve pdfjs display electronic signature" content is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!