@baic/pdfjs-dist
v1.0.7
Published
pdfjs-dist定制
Downloads
87
Readme
PDF.js
PDF.js is a Portable Document Format (PDF) library that is built with HTML5. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs.
This is a pre-built version of the PDF.js source code. It is automatically generated by the build scripts.
For usage with older browsers/environments, without support for modern features
such as e.g. async
/await
, Promise
, and ReadableStream
,
please refer to the es5
folder.
See https://github.com/mozilla/pdf.js for learning and contributing.
针对pdf.worker.js内部代码进行了注释处理
// 取消签章不显示
// if (data.fieldType === "Sig") {
// data.fieldValue = null;
// this.setFlags(_util.AnnotationFlag.HIDDEN);
// }
原来的build/转为lib/,再lib/经过es5
转换为build/解决某些项目不转换node_modules/的问题