Hope am not too late in answering your question. Here are the steps:
- Open the particular pdf in the reader to full screen.
- Launch inspect.
- Look for a hidden download button with id
downloadstyled asdisplay: none, Change that todisplay: inlineto make it visible. - Click the button to download your pdf.
document.getElementById('download').click()
Answer by Matt C and Vincent Omondi
Videos
Use the download attribute.
var link = document.createElement('a');
link.href = url;
link.download = 'file.pdf';
link.dispatchEvent(new MouseEvent('click'));
It is also possible to open the pdf link in a new window and let the browser handle the rest:
window.open(pdfUrl, '_blank');
or:
window.open(pdfUrl);
Hi, i'm a student and i have always used my university proxy server to access online libraries and download files from books. Since there was no download button, i have always used chrome "inspect" function --> Network --> Reloaded page to found the .pdf file link and download it directly.
This system has completely changed since September: now the pdf are shown into a library web reader, and i'm not able to find any .pdf link when i inspect the page. After some research i found out that the page is using javascript (some of the links i find through the inspection are .js, and if i disable javascript the page won't load), but my knowledge ends here.
Please help me to find a way to download .pdf files like i used to. Thanks!
Does anyone know? Can't manage to download it, my college make it completely available, but you need to download 10 pages each time, this is mental