You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call this during client application initialization, before the first PDF render. The worker must use the legacy build matching the installed `pdfjs-dist` version.
@@ -108,10 +120,14 @@ import { configurePdfjs } from '@eternalheart/react-file-preview';
108
120
configurePdfjs({
109
121
workerSrc: '/pdfjs/pdf.worker.min.mjs',
110
122
cMapUrl: '/pdfjs/cmaps/',
111
-
cMapPacked: true
123
+
cMapPacked: true,
124
+
standardFontDataUrl: '/pdfjs/standard_fonts/',
125
+
wasmUrl: '/pdfjs/wasm/'
112
126
});
113
127
```
114
128
129
+
Call this during client application initialization, before the first PDF render. The worker must use the legacy build matching the installed `pdfjs-dist` version.
130
+
115
131
### Vite Bundler Note (AVIF Decoder)
116
132
117
133
If your project bundler is Vite and you happen to have `@jsquash/avif` installed (transitively or directly), the production build may fail with:
0 commit comments