File tree Expand file tree Collapse file tree 13 files changed +580
-535
lines changed Expand file tree Collapse file tree 13 files changed +580
-535
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ import 'pdfjs-viewer-element'
7878## Usage
7979
8080``` html
81- <pdfjs-viewer-element src =" /file.pdf" viewer-path =" /pdfjs-4.10.38 -dist" ></pdfjs-viewer-element >
81+ <pdfjs-viewer-element src =" /file.pdf" viewer-path =" /pdfjs-5.3.93 -dist" ></pdfjs-viewer-element >
8282```
8383
8484## Attributes
@@ -130,7 +130,7 @@ Use `viewer-css-theme` attribute to set light or dark theme manually:
130130``` html
131131<pdfjs-viewer-element
132132 src =" /file.pdf"
133- viewer-path =" /pdfjs-4.10.38 -dist"
133+ viewer-path =" /pdfjs-5.3.93 -dist"
134134 viewer-css-theme =" DARK" >
135135</pdfjs-viewer-element >
136136```
@@ -142,7 +142,7 @@ You can add your own CSS rules to the viewer application using `viewer-extra-sty
142142``` html
143143<pdfjs-viewer-element
144144 src =" /file.pdf"
145- viewer-path =" /pdfjs-4.10.38 -dist"
145+ viewer-path =" /pdfjs-5.3.93 -dist"
146146 viewer-extra-styles =" #toolbarViewerMiddle { display: none; }"
147147 viewer-extra-styles-urls =" ['/demo/viewer-custom-theme.css']" >
148148</pdfjs-viewer-element >
@@ -175,7 +175,7 @@ Build your own theme with viewer's custom variables and `viewer-extra-styles-url
175175` initialize ` - using this method you can access PDFViewerApplication and use methods and events of PDF.js default viewer
176176
177177``` html
178- <pdfjs-viewer-element viewer-path =" /pdfjs-4.10.38 -dist" ></pdfjs-viewer-element >
178+ <pdfjs-viewer-element viewer-path =" /pdfjs-5.3.93 -dist" ></pdfjs-viewer-element >
179179```
180180
181181``` javascript
Original file line number Diff line number Diff line change 1616 < body >
1717 < pdfjs-viewer-element
1818 src ="/public/sample-pdf-with-images.pdf "
19- viewer-path ="/public/pdfjs-4.10.38 -dist "
19+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2020 style ="height: 100dvh ">
2121 </ pdfjs-viewer-element >
2222 </ body >
Original file line number Diff line number Diff line change 1616 < body >
1717 < pdfjs-viewer-element
1818 src ="/public/sample-pdf-with-images.pdf "
19- viewer-path ="/public/pdfjs-4.10.38 -dist "
19+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2020 viewer-css-theme ="DARK "
2121 style ="height: 100dvh ">
2222 </ pdfjs-viewer-element >
Original file line number Diff line number Diff line change 1616 < body >
1717 < pdfjs-viewer-element
1818 src ="/public/sample-pdf-with-images.pdf "
19- viewer-path ="/public/pdfjs-4.10.38 -dist "
19+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2020 viewer-extra-styles-urls ="['/demo/viewer-custom-theme.css'] "
2121 style ="height: 100dvh ">
2222 </ pdfjs-viewer-element >
Original file line number Diff line number Diff line change 1616 < body >
1717 < pdfjs-viewer-element
1818 src ="/public/sample-pdf-with-images.pdf "
19- viewer-path ="/public/pdfjs-4.10.38 -dist "
19+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2020 viewer-extra-styles ="#toolbarViewerMiddle { display: none; } "
2121 style ="height: 100dvh ">
2222 </ pdfjs-viewer-element >
Original file line number Diff line number Diff line change 1616 < body >
1717 < pdfjs-viewer-element
1818 src ="/public/sample-pdf-report.pdf "
19- viewer-path ="/public/pdfjs-4.10.38 -dist "
19+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2020 nameddest ="chart "
2121 style ="height: 100dvh ">
2222 </ pdfjs-viewer-element >
Original file line number Diff line number Diff line change 1717 < pdfjs-viewer-element
1818 id ="viewer "
1919 src ="/public/sample-pdf-with-images.pdf "
20- viewer-path ="/public/pdfjs-4.10.38 -dist "
20+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2121 style ="height: 100dvh ">
2222 </ pdfjs-viewer-element >
2323
Original file line number Diff line number Diff line change 1616 < body >
1717 < pdfjs-viewer-element
1818 id ="viewer "
19- viewer-path ="/public/pdfjs-4.10.38 -dist "
19+ viewer-path ="/public/pdfjs-5.3.93 -dist "
2020 style ="height: 100dvh ">
2121 </ pdfjs-viewer-element >
2222
Original file line number Diff line number Diff line change 1010 < body style ="margin: 0 ">
1111 < pdfjs-viewer-element
1212 src ="/fake-file.pdf "
13- viewer-path ="/pdfjs-4.10.38 -dist "
13+ viewer-path ="/pdfjs-5.3.93 -dist "
1414 style ="height: 600px ">
1515 </ pdfjs-viewer-element >
1616 < pdfjs-viewer-element
1717 id ="hideOpenFileViewer "
1818 src ="/sample-pdf-with-images.pdf "
19- viewer-path ="/pdfjs-4.10.38 -dist "
19+ viewer-path ="/pdfjs-5.3.93 -dist "
2020 locale ="de "
2121 page ="2 "
2222 style ="height: 600px ">
2626 < pdfjs-viewer-element
2727 id ="themedViewer "
2828 src ="/sample-pdf-10MB.pdf "
29- viewer-path ="/pdfjs-4.10.38 -dist "
29+ viewer-path ="/pdfjs-5.3.93 -dist "
3030 viewer-css-theme ="DARK "
3131 locale ="es "
3232 style ="height: 600px ">
4747
4848 < pdfjs-viewer-element
4949 id ="base-viewer "
50- viewer-path ="/pdfjs-4.10.38 -dist "
50+ viewer-path ="/pdfjs-5.3.93 -dist "
5151 locale ="uk "
5252 style ="height: clamp(600px, 600px, 80dvh) ">
5353 </ pdfjs-viewer-element >
Original file line number Diff line number Diff line change 11{
22 "name" : " pdfjs-viewer-element" ,
3- "version" : " 2.7.2 " ,
3+ "version" : " 2.7.3 " ,
44 "license" : " MIT" ,
55 "author" : {
66 "name" : " Oleksandr Shevchuk" ,
4040 "devDependencies" : {
4141 "@awlsn/pdfjs-full" : " ^4.3.1" ,
4242 "@rollup/plugin-terser" : " ^0.4.4" ,
43- "@types/node" : " ^22.16.5 " ,
43+ "@types/node" : " ^22.18.8 " ,
4444 "@vitest/browser" : " ^3.2.4" ,
4545 "jsdom" : " ^26.1.0" ,
46- "typescript" : " ^5.8 .3" ,
47- "vite" : " ^6.3.5 " ,
46+ "typescript" : " ^5.9 .3" ,
47+ "vite" : " ^6.3.6 " ,
4848 "vitest" : " ^3.2.4" ,
49- "webdriverio" : " ^9.18.1 "
49+ "webdriverio" : " ^9.20.0 "
5050 },
5151 "packageManager" :
" [email protected] +sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf" ,
5252 "dependencies" : {
You can’t perform that action at this time.
0 commit comments