VadimDez / ng2-pdf-viewer

📄 PDF Viewer Component for Angular
https://vadimdez.github.io/ng2-pdf-viewer/
MIT License
1.31k stars 420 forks source link

CDN legacy of pdfjs-dist fails #1007

Open KhaledLela opened 1 year ago

KhaledLela commented 1 year ago
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

KhaledLela commented 1 year ago

Most probably cdn legacy availability for my IP.

https://github.com/mozilla/pdf.js/issues/16547

solos commented 1 year ago

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

stale[bot] commented 11 months ago

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.