Removes mozPrintCallback polyfill, converts canvas to PNG.

This commit is contained in:
Yury Delendik 2016-10-08 07:36:55 -05:00
parent 24a7a58da7
commit c09f634bb6
9 changed files with 339 additions and 279 deletions

View file

@ -1100,6 +1100,13 @@ var PDFViewerApplication = {
},
beforePrint: function pdfViewSetupBeforePrint() {
if (this.printService) {
// There is no way to suppress beforePrint/afterPrint events,
// but PDFPrintService may generate double events -- this will ignore
// the second event that will be coming from native window.print().
return;
}
if (!this.supportsPrinting) {
var printMessage = mozL10n.get('printing_not_supported', null,
'Warning: Printing is not fully supported by this browser.');