VadimDez/ng2-pdf-viewer

CDN legacy of pdfjs-dist fails

KhaledLela opened this issue · 3 comments

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

https://cdn.jsdelivr.net/npm/pdfjs-dist@3.7.107/legacy/build/pdf.worker.min.js

https://cdn.jsdelivr.net/npm/pdfjs-dist@2.11.338/legacy/build/pdf.worker.js

Most probably cdn legacy availability for my IP.

mozilla/pdf.js#16547

solos commented

You could change the cdn url in component constructor method like this:
(window as any)['pdfWorkerSrc'] = 'https://example.com/path/pdf.worker.min.js';

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.