Pdf is not displaying.
See original GitHub issueAngular CLI: 10.0.4 Node: 10.21.0 OS: linux x64
Pdf is not showing in the webapp.
In the console it is showing:
ngx-extended-pdf-viewer running on pdf.js 2.6.57.
PDF b3ac4578280e6f0bd92ef63870ddb51f [1.4 Skia/PDF m84 / Chromium] (PDF.js: 2.6.57) modified by ngx-extended-pdf-viewer)
I have directly referred to the pdf from my assets folder and I am using the latest version of extended pdf viewer.
<ngx-extended-pdf-viewer src="../../../assets/abc.pdf" useBrowserLocale="true" textLayer="true"></ngx-extended-pdf-viewer>
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
PDF won't display. Please wait - Adobe Support Community
- Open a file in Acrobat/Reader. Click on File > Properties. Once you get the properties dialog box check, click on Description tab,...
Read more >Chrome PDF Viewer Not Working? Here's How to Fix It
How to Fix When Chrome Won't Load PDFs · Select the three dots in the top-right corner of the browser. · Click More...
Read more >Documents not displaying correctly in Adobe Acrobat Reader ...
My new HP laptop doesn't display PDFs correctly using Adobe Acrobat Reader DC 2020.006.20042. It's got Windows 10 installed, ...
Read more >Can't Open PDF? How To Fix PDF Files Not Opening Error
Fix 1: Install a PDF Reader · Run Adobe Reader or Acrobat. · Choose Help from menu bar. · Select Check for Updates...
Read more >If PDF Documents Do Not Display in the Preview Pane
1) You should first go to Settings > Application Settings. Uncheck the box for PDF Viewing. 2) If that does not work, then...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That was quick! 😃 Well, generally speaking, you shouldn’t have to import the file manually. But I think it’s a good idea for a test and maybe even as a workaround.
You just have to make sure you’re loading the pdf-worker-es5.min.js that ships with ngx-extended-pdf-viewer. It contains several improvements over Mozilla’s version.
If you want to debug why the message is emitted, use pdf-worker.js instead of the minified version.
Importing
pdf-worker-es5.min.js
throws initialization errors. Importingpdf-worker.min.js
solved the problem.Anyway thank you for your help 😃