We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba5f293 commit fe9dbabCopy full SHA for fe9dbab
package.json
@@ -37,9 +37,10 @@
37
"test": "jest --passWithNoTests"
38
},
39
"dependencies": {
40
+ "canvas": "^3.1.0",
41
"node-addon-api": "^8.3.0",
42
"node-gyp": "^11.0.0",
- "pdfjs-dist": "3.11.174"
43
+ "pdfjs-dist": "4.10.38"
44
45
"devDependencies": {
46
"@jest/globals": "^29.7.0",
src/pdf-to-png.ts
@@ -4,7 +4,7 @@
4
import * as Canvas from 'canvas'
5
import { readFileSync } from 'node:fs'
6
import { dirname, join } from 'node:path'
7
-import { getDocument } from 'pdfjs-dist/legacy/build/pdf'
+import { getDocument } from 'pdfjs-dist'
8
9
const PDFJS_DIR = dirname(require.resolve('pdfjs-dist'))
10
const C_MAP_URL = join(PDFJS_DIR, '../cmaps/')
0 commit comments