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

@ -175,8 +175,7 @@ function webViewerLoad() {
// Ensure that src/main_loader.js has loaded all the necessary dependencies
// *before* the viewer loads, to prevent issues in browsers relying on e.g.
// the Promise/URL polyfill in src/shared/util.js (fixes issue 7448).
require(['pdfjs-web/app', 'pdfjs-web/firefox_print_service',
'pdfjs-web/mozPrintCallback_polyfill'], function (web) {
require(['pdfjs-web/app', 'pdfjs-web/pdf_print_service'], function (web) {
window.PDFViewerApplication = web.PDFViewerApplication;
web.PDFViewerApplication.run(config);
});