Pdf.js: How to print pdf via pdf.js

Created on 10 Aug 2017  路  2Comments  路  Source: mozilla/pdf.js

Link to PDF file (or attach file here):
https://cdn.rawgit.com/mozilla/pdf.js/master/web/compressed.tracemonkey-pldi-09.pdf
Configuration:

  • Web browser and its version: chrome
  • Operating system and its version: windows 10
  • PDF.js version: 1.7.225
  • Is an extension:

I use pdf.js to show the pdf in the browser, but faced with a problem. How can I print the pdf via a print button, acting as the print function in view.js.

Most helpful comment

The default viewer uses PDFPrintService for printing. Refer to https://github.com/mozilla/pdf.js/blob/master/web/pdf_print_service.js and app.js for how to use it.

All 2 comments

The default viewer uses PDFPrintService for printing. Refer to https://github.com/mozilla/pdf.js/blob/master/web/pdf_print_service.js and app.js for how to use it.

Thanks a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liuzhen2008 picture liuzhen2008  路  4Comments

aaronshaf picture aaronshaf  路  3Comments

azetutu picture azetutu  路  4Comments

patelsumit5192 picture patelsumit5192  路  3Comments

SehyunPark picture SehyunPark  路  3Comments