question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pdf is not displaying.

See original GitHub issue

Angular 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:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stephanrauhcommented, Aug 22, 2020

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.

0reactions
pks9862728888commented, Aug 24, 2020

Importing pdf-worker-es5.min.js throws initialization errors. Importing pdf-worker.min.js solved the problem.

Anyway thank you for your help 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found