@toolspack/ttd-pdfjs 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +2 -2
- package/README.md +14 -2
- package/lib/ttd-pdfjs.common.js +199 -267
- package/lib/ttd-pdfjs.umd.js +199 -267
- package/lib/ttd-pdfjs.umd.min.js +5 -27
- package/package.json +3 -3
- package/src/packages/pdfjs/PdfView216.vue +80 -65
package/.eslintignore
CHANGED
package/README.md
CHANGED
|
@@ -16,6 +16,17 @@
|
|
|
16
16
|
# 发布项目
|
|
17
17
|
(不能和上次版本一样) npm run lib (打包), 打包完成后,执行npm publish
|
|
18
18
|
|
|
19
|
+
1. 首先2.8.335版本之前引入方式
|
|
20
|
+
import pdfJS from "pdfjs-dist";
|
|
21
|
+
import workerSrc from 'pdfjs-dist/build/pdf.worker.entry'
|
|
22
|
+
pdfJS.workerSrc = workerSrc;
|
|
23
|
+
//或者使用
|
|
24
|
+
import pdfJS from 'pdfjs-dist/es5/build/pdf.js'
|
|
25
|
+
2. 2.8.335版本之后引入方式
|
|
26
|
+
// 注意导入的写法
|
|
27
|
+
import * as PdfJs from 'pdfjs-dist/legacy/build/pdf.js'
|
|
28
|
+
PdfJs.workerSrc = require('pdfjs-dist/build/pdf.worker.entry')
|
|
29
|
+
|
|
19
30
|
|
|
20
31
|
0.0.0: pdfjs-dist2.16.105 单独打包
|
|
21
32
|
0.0.1: 修复bug
|
|
@@ -24,5 +35,6 @@
|
|
|
24
35
|
0.0.4: 优化destroy,清空canvas
|
|
25
36
|
0.0.5: 使用legacy目录否则 chrome88 报错(structuredClone is not defined)
|
|
26
37
|
0.0.6: 使用legacy目录 渲染有字体显示不完整情况,升级corejs 解决
|
|
27
|
-
0.0.7: closepdf 方法中的 canvas判空
|
|
28
|
-
0.0.8: 添加 updateScale
|
|
38
|
+
0.0.7: closepdf 方法中的 canvas判空
|
|
39
|
+
0.0.8: 添加 updateScale
|
|
40
|
+
0.0.9: bug fixed
|