Improvements
- [#162] - Worker Source
- [#232] - Don't overwrite PDFJS.workerSrc if already set
- [#226] - Update Size scale Error
- [#237] - Prevent throwing error: "PDFViewer._setScale: '0' is an unknown zoom value"
- [#182] - Documentation: Load preview for local files
Set custom path to the worker:
In your code update path
to the worker to be /pdf.worker.js
PDFJS.workerSrc = '/pdf.worker.js';
This should be set before pdf-viewer
component is rendered.