File tree Expand file tree Collapse file tree 4 files changed +1509
-1368
lines changed Expand file tree Collapse file tree 4 files changed +1509
-1368
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,9 @@ const viewerApp = await viewer.initialize()
179
179
viewerApp .open ({ data: pdfData })
180
180
```
181
181
182
- ## Server configuration
182
+ ## Known issues
183
+
184
+ ### The ` .mjs ` files support
183
185
184
186
Since v4 PDF.js requires ` .mjs ` files support, make sure your server has it.
185
187
@@ -204,6 +206,13 @@ server {
204
206
}
205
207
```
206
208
209
+ ### Problem with range requests / streaming
210
+
211
+ Sometimes a PDF file fails to load when working with range requests / streaming.
212
+ If you encounter this issue, you can try disabling the broken functionality of PDF.js:
213
+
214
+ ` disable-range="true" `
215
+
207
216
208
217
## License
209
218
[ MIT] ( http://opensource.org/licenses/MIT )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pdfjs-viewer-element" ,
3
- "version" : " 2.7.0 " ,
3
+ "version" : " 2.7.1 " ,
4
4
"license" : " MIT" ,
5
5
"author" : {
6
6
"name" : " Oleksandr Shevchuk" ,
40
40
"devDependencies" : {
41
41
"@awlsn/pdfjs-full" : " ^4.2.392" ,
42
42
"@rollup/plugin-terser" : " ^0.4.4" ,
43
- "@types/node" : " ^18.19.31 " ,
44
- "@vitest/browser" : " ^1.5.0 " ,
45
- "jsdom" : " ^22.1 .0" ,
46
- "typescript" : " ^4.9.5 " ,
47
- "vite" : " ^5 .2.9 " ,
48
- "vitest" : " ^1.5.0 " ,
49
- "webdriverio" : " ^8.36 .1"
43
+ "@types/node" : " ^22.13.5 " ,
44
+ "@vitest/browser" : " ^3.0.7 " ,
45
+ "jsdom" : " ^26.0 .0" ,
46
+ "typescript" : " ^5.7.3 " ,
47
+ "vite" : " ^6 .2.0 " ,
48
+ "vitest" : " ^3.0.7 " ,
49
+ "webdriverio" : " ^9.10 .1"
50
50
},
51
51
"packageManager" :
" [email protected] +sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf" ,
52
52
"dependencies" : {
You can’t perform that action at this time.
0 commit comments