Project

Profile

Help

Bug #3187

closed

printing

Added by Jan Paul Stegeman over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2017-03-30
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
1.0
Fix Committed on JS Branch:
1.0
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

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:

  1. do not override window.print() and just use console.log() in stead

  2. provide the original window.print() functionality to another function on window, i.e. window.printOrg = window.print before overriding window.print()

Thanks,

Jan Paul

Please register to edit this issue

Also available in: Atom PDF Tracking page