Scroll & Save PDF is a lightweight Chrome extension that automatically scrolls through a webpage to ensure all dynamic content is loaded, then opens the print dialog with full styling and color accuracy—perfect for saving clean and complete PDFs of web pages.
- 🔄 Automatically scrolls the entire webpage
- 🎨 Preserves styles and colors in print view
- 🖨️ Triggers the print dialog for easy PDF saving
- 🧠 Intelligent delay and scrolling logic to capture dynamic content
-
Download or clone this repository:
git clone https://github.com/yourusername/scroll-save-pdf.git
-
Open chrome://extensions in your Chrome browser.
-
Enable Developer mode (top right).
-
Click Load unpacked and select the extension's folder.
- Navigate to the webpage you want to save as PDF.
- Click the extension icon in your toolbar.
- In the popup, click Start.
- The page will automatically scroll to the bottom.
- Once complete, the print dialog will appear—use it to save the page as a PDF.
.
├── background.js # Background service worker
├── content.js # (Currently unused but reserved for future functionality)
├── icon.png # Extension icon
├── manifest.json # Chrome extension manifest (v3)
├── popup.html # UI for the extension popup
├── popup.js # Main logic for scroll & print
└── README.md # This file
- The extension uses
chrome.scriptingto inject JavaScript into the active tab. - Ensures color accuracy during printing using
-webkit-print-color-adjust. - Handles infinite scrolling content by scrolling the page in increments and delaying before triggering
window.print().
activeTab: Needed to access the currently open tab.scripting: Required to inject the scroll & print function.
MIT License. See LICENSE for more details.