All work
Save2PDF
2022·Sole engineer·shipped

Save2PDF

A Chrome extension that saves any webpage to a clean, consistently formatted PDF in one click. Strips ads, navigation, and clutter using content scripts, applies custom print CSS, and triggers a clean PDF export.

Problem

Browser print-to-PDF produces messy output — ads, sidebars, broken layouts, and navigation elements all end up in the file. There was no quick way to save a clean, readable version of a page.

Solution

Chrome content script injects custom CSS that hides non-content elements (ads, navbars, footers, sidebars) and applies clean typography and spacing. Extension popup triggers the window.print() API with the injected styles active, producing a clean single-column PDF.

Architecture

Content script

Injected into every page. Applies print CSS overrides that hide ads, navigation, and sidebars. Normalizes font sizes, line height, and margins.

Extension popup

One-button interface triggers the save action. Communicates with the content script via Chrome message passing.

Print CSS

Custom @media print stylesheet strips non-content elements and enforces clean single-column layout with consistent typography.

Highlights

  • Content script CSS injection strips ads, sidebars, and navigation before print.
  • Custom @media print stylesheet enforces clean single-column layout.
  • One-click popup interface via Chrome extension message passing.
  • Works across any webpage without site-specific configuration.