Skip to content

Commit

Permalink
Update pdfjs-dist to v4.7.76
Browse files Browse the repository at this point in the history
  • Loading branch information
hrynko committed Oct 21, 2024
1 parent a592e0c commit 1bcc0de
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/VuePdfEmbed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ const renderPageAnnotationLayer = async (
annotationEditorUIManager: null,
div: container,
page,
structTreeLayer: null,
viewport,
}).render({
annotations: await page.getAnnotations(),
Expand Down
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1bcc0de

Please sign in to comment.