I want to download a pdf file from pdf.js viewer but i am not able to download the file.
I also tried to download using this way:
- Open the particular pdf in the reader to full screen.
- Launch inspect.
- Look for a hidden download button with id download styled as display: none,
- Change that to display: inline to make it visible.
- Click the button to download your pdf.
But still I am not able to download the file.
2 Answers
Are you in a web browser?
In this case you can simply save the page (ctrl + s), and you'll have the pdf.
I'm not sure why you are trying to download the PDF via the browser inspector.
When I open a PDF in the browser I get a toolbar with a download button at the top on the right of the screen.