AkshayMohan / gdrive_pdfdownloader

A simple powershell script that downloads all the PDF pages from a given google drive view.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdrive_pdfdownloader

A simple powershell script that downloads all the PDF pages from a given google drive view. This was meant for personal use so the features are very limited for now. In future, I might automate the script completely and not just limit only to Windows.

Usage

Suppose there's a read-only, download restricted PDF file. The following are the steps for a Firefox user. I assume these steps are similar for Chrome and other browsers too.

  • Right click and select "Inspect Element".

  • Navigate to "Network" tab.

  • On the 'filter' bar, type in "img?". If you don't find any results, simply refresh the page by pressing F5 button. Once the page starts loading, scroll downwards until you get atleast one file name having the substring "img?". a.png

  • Right click on any one of the file names and copy the URL. b.png

  • Open the powershell script and paste the link.

  • Mention the number of pages you want to download. In this case, there's 5 pages so I enter 5.

  • Type in the destination where the downloaded images should be stored at.

c.png

d.png

Changelogs

v1.0.0 - 5th of January, 2019

  • Initial release.

LICENSE

Licensed under MIT.

About

A simple powershell script that downloads all the PDF pages from a given google drive view.

License:MIT License


Languages

Language:PowerShell 100.0%