1

The PDF file forced to be opened in html5 which there is no print or download button. How could I save it to my local computer?

The viewer looks similar to this one https://mozilla.github.io/pdf.js/

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
David Guo
  • 31
  • 1
  • 5

2 Answers2

2

Pdf.js documents can be downloaded by executing the following javascript from the browser search bar:

javascript:PDFViewerApplication.download()

Note that in order to execute javascript in the search, this feature must first be enabled:

  • In Safari, select "Allow Safari from Smart Search Field" in the Develop menu.
  • Chrome and FireFox users can follow these instructions to enable the feature.
daWaveman
  • 63
  • 9
0

If you see that website or application is using pdf.js or id set to pdfViewer you can follow following steps. To check inspect the PDF window with the dev tools.

inspect element

Step: Go to dev tools on your browser and type the following command in the console.

PDFViewerApplication.download()

This will trigger the download automatically.

Screenshot:

console window

Rajat Jain
  • 1,339
  • 2
  • 16
  • 29