1

How could I download a protected Pdf (view allowed, download not)? The link of the Pdf file is the following:

http://krishikosh.egranth.ac.in/handle/1/20399

10
  • Hi @Dave, if I'm not mistaken, it's allow to store an ebook for 24 hours and then it must be deleted. However, if this is not right, I'd learn how download a protected Pdf (not the above Pdf). Commented Dec 6, 2016 at 10:04
  • Hi @fixer1234, if is not allowed to store the file for 24 hours, I ask how download a protected file (for example a file which I uploaded). Commented Dec 6, 2016 at 10:26
  • Can you elaborate on what you're trying to do? I can't figure this question out: I just clicked the big blue button to download/view (that's the same thing) the pdf. Commented Dec 6, 2016 at 11:00
  • @MarcksThomas, are you able to save that PDF to your computer
    – Dave
    Commented Dec 6, 2016 at 11:04
  • 1
    Yes, please screen shot that... I can view it, but I can't download it
    – Dave
    Commented Dec 6, 2016 at 14:39

4 Answers 4

2

I am assuming you have permission and are not breaking any laws.

The link you want is

http://krishikosh.egranth.ac.in/bitstream/1/20399/1/24441.pdf 

However, you should not access it if you don't have permission.

The way to locate this is to use a browser with dev tools (most do). In this case, in Chrome press F12

Then in the Elements tab you can locate the link URL by expanding the HTML elements until you find the relevant section.

Update

Another way is to disable the PDF viewer in the browser (this is unlikely to work for the website in your question but may work for other websites). This means that when the PDF is requested, the browser has no tool/method to open the file, and as such will provide it as a download.

4
  • Hi @Dave, in the section Elements, where did you find the link krishikosh.egranth.ac.in/bitstream/1/20399/1/24441.pdf? I opened all subsections in the Elements section, but I don't see that. Commented Dec 6, 2016 at 21:39
  • It is in there @GennaroArguzzi :)
    – Dave
    Commented Dec 7, 2016 at 10:21
  • Disabling the browser's PDF viewer is clever. But in this case, the viewer is something built into the web site rather than the local viewer.
    – fixer1234
    Commented Dec 7, 2016 at 10:30
  • @fixer1234 I will make this clearer. Thanks
    – Dave
    Commented Dec 7, 2016 at 10:52
0

I've encountered the same issue, and thanks for this post I am able to get a clue to its solution. The steps are as follows:

  1. Open the Acrobat Reader application on your PC
  2. Try to open a file using Ctrl-O shortcut or File-->Open in the pull-down menu
  3. In the Filename text box in the dialog box that appears, paste the URL of the protected online PDF file
  4. Click the Open button and wait for the file to be downloaded and opened on your PC-based Acrobat Reader

It worked on me!

0

The straigtforward (but probably not entirely satisfying) way to do that is to install a plugin that lets you print as pdf when you press Ctrl+P. Then you just print the whole page as pdf from your browser. Usually works like a charme.

0

Download & Install Git from https://git-scm.com/

On the View page for the pdf press F12 to open the inspector. search "iframe" until you find iframe Value with bitstream. Copy the value

Launch Git and type the following code:

curl 'https://krishikosh.egranth.ac.in/xxx' -H 'keyname: Akz914723960' -H 'Type: application/pdf' -d '' -o C:/name.pdf

Replace the copied value with bistream in place of xxx in the above code.

Replace "name" with the file name you want to give the pdf ... it will download to your C drive folder.

3
  • How is Git relevant to this answer?
    – Joseph
    Commented Feb 23, 2021 at 17:51
  • @Joseph, Thanks for pointing that out. Have edited my answer on what is to be done in git. Git is used to run the download command script.
    – Tech One
    Commented Mar 2, 2021 at 19:21
  • 1
    Hi, I think there is a misunderstanding here. Git is in no way needed to run a command like curl — they are separate software. On Windows, one can simply launch cmd to run these commands, and on a Mac, one would launch Terminal. Git is not needed to run commands.
    – Joseph
    Commented Mar 3, 2021 at 5:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .