Google-chrome – How to download a pdf from viewer.js

google-chromejavascriptpdf

I was on a site with a pdf without a download option. I read online that you should "inspect element" to find the true source.
After scrolling through the elements > properties I found a "Base URI" (I don't fully understand this)

From here the pdf loaded but there still wasn't a print /save button. If I use Chrome's Print> Save as PDF it only saves a few of the pages. From what I can tell by playing around with it is that it only loads certain pages and only for a while. After that the pages go back to being blank again until you scroll to them. I tried scrolling through the whole document and then print>save PDF but it only showed the bottom pages and the top ones went blank again. Anyone have any ideas on how to get the whole document in PDF?

Thank you for your help! I've scoured the net trying to figure this out but alas I need help.

Best Answer

By opening the network monitor in your browser's devtools, you can view all network requests the page makes; somewhere in there should be the PDF, though the URL / URI might not look like one.

On the specific link you provided, the page made a request to get.php with a query string hash of the document - the response was a plain PDF file.

Related Question