Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Show HN: SnapPDF – Turn any URL into a print-ready PDF with one HTTP call

SnapPDF is a tool that converts any URL into a print-ready PDF via a single HTTP POST request. It supports configurable paper format, orientation, and scale, eliminating the need for users to install or manage a headless browser themselves. The project is open-source on GitHub and offers a live demo instance for testing.

Background

Headless Chromium is a version of the Chrome browser that runs without a visible window, commonly used on servers to render web pages and convert them to PDFs, screenshots, or data. Many developers rely on tools like Puppeteer or Playwright to control it, which requires installing the browser binary, writing boilerplate code, and managing its lifecycle — SnapPDF wraps all of that behind a single POST endpoint so projects don't have to set up their own headless infrastructure. The author also provides a hosted instance (snappdf.dedyn.io:8444) for quick trials; "dyn" suggests a dynamic DNS service, meaning the IP may change.