A simple Chrome browser extension that allows users to save any webpage as a PDF file while preserving its design and layout.
- One-click PDF generation - Save any webpage as PDF with a single click
- Preserves design - Maintains original webpage appearance, fonts, and colors
- Selectable text - Generated PDFs have fully selectable and searchable text
- Universal compatibility - Works on all websites, including those with strict Content Security Policies
- No external dependencies - Uses Chrome's built-in PDF generation capabilities
- Click the extension icon in your Chrome toolbar
- The extension uses Chrome's native print functionality to generate a PDF
- PDF is automatically downloaded with optimized settings for screen layout preservation
- Download or clone this repository
- Open Chrome and go to chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension folder
- The Web to PDF icon will appear in your toolbar
- manifest.json- Extension configuration and permissions
- popup.html/js- Extension popup interface
- background.js- Service worker handling PDF generation
- content.js- Injected script for browser-native PDF creation
- icons/- Extension icons in multiple sizes
- lib/- Third-party libraries (html2canvas, jsPDF) for fallback support
The extension leverages Chrome's built-in PDF generation through the chrome.debugger API, ensuring high-fidelity output with selectable text. It requires minimal permissions (activeTab, scripting, debugger, downloads, notifications) and operates entirely client-side.
- Extension icon by the Solar Icon Set
- Uses Chrome's native PDF rendering engine
- JavaScript libraries:
- html2canvas - HTML to canvas rendering for fallback support
- jsPDF - PDF generation library for client-side fallback
 
- Coded by Claude
Developed by Klemens Arro with Anthropic's Claude AI.