Bug #3187
closed![Author: Jan Paul Stegeman](https://www.gravatar.com/avatar/bafa27493ed646d19b8cc2c5293a56f6?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Debbie Lockett](https://www.gravatar.com/avatar/9c2ec304a5bec55af709863d87d5f6b7?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
printing
100%
Description
Hello,
You've been into contact with some of my colleagues at SaxonJS. I've run into something as well: printing.
I have been looking at an issue where the print functionality in our website did not work. After some investigation I noticed that SaxonJS "hijacks" the print functionality, SaxonJS.js:191 says:
window.print = function (str) {
console.log(str);
};
So, any call to window.print()
is just a redirect to console.log()
. Without any possibility to use printing on our site.
I see two options:
-
do not override
window.print()
and just useconsole.log()
in stead -
provide the original window.print() functionality to another function on window, i.e.
window.printOrg = window.print
before overridingwindow.print()
Thanks,
Jan Paul
Please register to edit this issue
Also available in: Atom PDF Tracking page