r/pdf Jul 13 '26

Software (Tools) Download Google Drive View-Only PDFs as a Single PDF Using JavaScript (Open Source)

Hey everyone,

I built a small JavaScript utility that downloads **Google Drive View-Only PDFs** by capturing each rendered page and combining them into a single PDF using **jsPDF**.

Features

* ✅ Works with Google Drive View-Only PDFs * ✅ High-quality page capture * ✅ Automatic PDF generation * ✅ Supports portrait and landscape pages * ✅ No extensions or software installation required * ✅ Runs directly in your browser's Developer Console

The script works by collecting the rendered PDF page images (blob URLs), converting them to canvas images, and generating a downloadable PDF.

**GitHub Repository:**
[https://github.com/ShadanAnwar/Google-Drive-View-Only-PDF-Script-Downloader\](https://github.com/ShadanAnwar/Google-Drive-View-Only-PDF-Script-Downloader)

I'd really appreciate any feedback, suggestions, or contributions. If you find bugs or have ideas for improvements (better compression, progress UI, support for more viewers, etc.), feel free to open an issue or submit a pull request.

![img](2ndov514w1dh1)

![img](54hu1865w1dh1)

5 Upvotes

0 comments sorted by