-
Notifications
You must be signed in to change notification settings - Fork 114
Printing does not work #4
Comments
It might be as simple as updating the |
Yes I believe updating the |
I'm having this issue as well with chrome and FF. The viewer.html that I downloaded from your responses here still is missing those dis. I've added the divs myself but I don't see them showing up. |
It should be fixed now after running a |
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? |
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:The renderProgress function searches the
mozPrintCallback-shim
, but cannot find it. It isnull
andCrash:
![screen shot 2016-02-13 at 00 10 46](https://cloud.githubusercontent.com/assets/5238592/13023145/4587052a-d1e6-11e5-804d-1e4454f6994b.png)
var progressContainer = document.getElementById('mozPrintCallback-shim');
is null...One cannot call
querySelector
on it.Original viewer template:
![screen shot 2016-02-13 at 00 07 12](https://cloud.githubusercontent.com/assets/5238592/13023107/df4c5152-d1e5-11e5-8b79-b9801869af61.png)
Is the solution as simple as adding the missing divs to the template?
The text was updated successfully, but these errors were encountered: