Removes mozPrintCallback polyfill, converts canvas to PNG.
This commit is contained in:
parent
24a7a58da7
commit
c09f634bb6
9 changed files with 339 additions and 279 deletions
|
@ -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.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue