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.

Printing does not work

See original GitHub issue

Thanks for making angular-pdfjs-viewer. It looking great.

There seems to be an issue with printing. PDF.js complains when calling renderProgress, it crashes because the template is lacking 2 divs:

  1. printContainer
  2. mozPrintCallback-shim

The renderProgress function searches the mozPrintCallback-shim, but cannot find it. It is null and

Crash: var progressContainer = document.getElementById('mozPrintCallback-shim'); is null… One cannot call querySelector on it. screen shot 2016-02-13 at 00 10 46

Original viewer template: screen shot 2016-02-13 at 00 07 12

Is the solution as simple as adding the missing divs to the template?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
moesjarrafcommented, Apr 1, 2016

It should be fixed now after running a bower update in your project.

0reactions
kegstercommented, Apr 1, 2016

This solution partially fixed the problem. While the print button now works, it doesn’t do a nice print of the document only. It shows as if someone tried to print the website.

Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

13 Common Printer Problems and How to Fix Them
If you don't use your printer often, sometimes ink in your printer head will dry and lead to clogging. When you start to...
Read more >
What to Do When Your Printer Won't Print | PCMag
What to Do When Your Printer Won't Print · Check Your Printer's Error Lights · Clear the Printer Queue · Solidify the Connection...
Read more >
Fix printer connection and printing problems in Windows
Step 1. Unplug and restart your printer · Step 2. Check cables or wireless connection · Step 3. Uninstall and reinstall your printer...
Read more >
10 Things to Try When Your Printer Won't Print - Help Desk Geek
1. Check Paper Tray and Printer Connection · 2. Run the Printer Troubleshooter · 3. Set the Printer As Default · 4. Clear...
Read more >
I can't print, what should I do? » Hardware »
First, make sure the printer is on and has paper in the tray. You may also want to check that it has ink...
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