Small JavaScript script designed to help you bypass read-only restrictions on PDF documents from Google Drive and allow you to download/save them.
- After downloading, open the file with your editor of choice.
- Next, copy the entire code from the file to your clipboard.
- After this, open the Developer Tools Console in your browser on the same page that the file you are trying to download is in.
- Finally, paste the copied code inside the console and run it.
- The script will start to go through all the pages of the document until it reaches the last, at which point you will be asked to name the file and save it. (For very large documents, you will have to be more patient)