diff --git a/package-lock.json b/package-lock.json index 4383fef..505341f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.1.0", "license": "MIT", "dependencies": { - "pdfjs-dist": "^4.6.82" + "pdfjs-dist": "^4.7.76" }, "devDependencies": { "@tsconfig/node20": "^20.1.4", @@ -4104,9 +4104,9 @@ } }, "node_modules/pdfjs-dist": { - "version": "4.6.82", - "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.6.82.tgz", - "integrity": "sha512-BUOryeRFwvbLe0lOU6NhkJNuVQUp06WxlJVVCsxdmJ4y5cU3O3s3/0DunVdK1PMm7v2MUw52qKYaidhDH1Z9+w==", + "version": "4.7.76", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.7.76.tgz", + "integrity": "sha512-8y6wUgC/Em35IumlGjaJOCm3wV4aY/6sqnIT3fVW/67mXsOZ9HWBn8GDKmJUK0GSzpbmX3gQqwfoFayp78Mtqw==", "engines": { "node": ">=18" }, diff --git a/package.json b/package.json index d8c3bbe..c55c75d 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "format": "prettier . --write --ignore-path .gitignore" }, "dependencies": { - "pdfjs-dist": "^4.6.82" + "pdfjs-dist": "^4.7.76" }, "devDependencies": { "@tsconfig/node20": "^20.1.4", diff --git a/src/VuePdfEmbed.vue b/src/VuePdfEmbed.vue index db2682c..e8fd2bd 100644 --- a/src/VuePdfEmbed.vue +++ b/src/VuePdfEmbed.vue @@ -363,6 +363,7 @@ const renderPageAnnotationLayer = async ( annotationEditorUIManager: null, div: container, page, + structTreeLayer: null, viewport, }).render({ annotations: await page.getAnnotations(), diff --git a/vite.config.ts b/vite.config.ts index df1c3ea..679ee84 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,12 +22,12 @@ export default defineConfig({ hook: 'writeBundle', targets: Object.entries({ textLayer: [ - [2933, 2942], - [440, 560], + [2936, 2945], + [441, 568], ], annotationLayer: [ - [2933, 2942], - [561, 925], + [2936, 2945], + [569, 933], ], }).map(([key, ranges]) => ({ src: 'node_modules/pdfjs-dist/web/pdf_viewer.css',