Bug #3187
closedprinting
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