Skip to content

Instantly share code, notes, and snippets.

View Hans5958's full-sized avatar
🏫
Uni and uni and uni and... (limited availability!)

Hans5958 Hans5958

🏫
Uni and uni and uni and... (limited availability!)
View GitHub Profile
@Hans5958
Hans5958 / Google Drive PDF Ripper._.md
Last active April 26, 2024 05:30 — forked from dpaluy/README.md
Google Drive PDF Ripper: Rips (protected/view-only) PDFs from Google Drive

Google Drive PDF Ripper

This script rips (protected/view-only) PDFs from Google Drive by copying all the page images provided by Google Drive, and then put it on a PDF. It is a ripper (not a downloader) because it does not download the PDF file directly, and it involves some sort of conversion (PDF > images > PDF).

This script is based on https://gist.github.com/dpaluy/74258794f7930401cc27262e0ea794dd and https://gist.github.com/cirippo/86edfbddc3125eb64ee4b2d8faa52caa, with updates made since I was quite bored, and didn't want to adjust parts of the code to my own when I'm using it.

Features

  • Uses latest jsPDF version and modern JavaScript techniques
  • Supports Trusted Types API (for Google Chrome/Chromium users)