- Google Chrome (with no adblock and disable all extensions)
- ImageMagick (convert)
- Open the google drive pdf file on google chrome and open the console in chrome (ctrl+shift+I and then choose console option)
- https://github.com/elosha/degooglepdf : open the site
- click on downloader.js on the repository and copy the code pasted there
- paste the code on the console of chrome on the tab of the pdf file, it will start autoscrolling and proceeding ahead
- download the zip of the github repository(click the green code button and then choose download zip)
- First, you need to download and install Cygwin on your Windows machine. You can download it from https://www.cygwin.com/
Once Cygwin is installed, open it from the Start menu or by searching for "Cygwin" in the Windows search bar.
In the Cygwin terminal, navigate to the directory where your script file is located. You can use the
cdcommand to change directories. For example, if your script file is located in the “E:/Softwares” folder, you can navigate to it by typing
cd E:/Softwaresand pressing Enter.
Next, you need to make the script file executable. To do this, use the
chmodcommand followed by the
+xoption and the name of your script file. the script file you have downloaded from github is named
mkpdf.sh, you would type
chmod +x mkpdf.shand press Enter.
- once the console command has completed progress, it'll download a .imgpack file on you pc
- put that .imgpack and mkpdf.sh from the github repository in the same folder of the directory you have chosen for cygwin
- install ImageMagick from the site https://imagemagick.org/
- execute the script by typing
./mkpdf.sh "filename"and pressing Enter (put the name of the file you have obtained from the google drive pdf console command). For example, put
./mkpdf.sh cocoeg5.imgpackif your file name is cocoeg5.imgpack
- it'll then do all the pdf generation itself and voila. you got the pdf.