2026-06-03
Our HTML to PDF tool uses your browser's native print engine — no server, no headless Chrome. Here is exactly what that means for quality and limitations.
Most HTML-to-PDF tools run a headless browser on a server — Puppeteer, Playwright, wkhtmltopdf. They spin up a full Chromium instance, load your HTML, and call page.pdf().
Our tool skips the server entirely. It renders your HTML in a sandboxed <iframe> in your browser tab, then calls window.print(). Your browser's built-in PDF export does the rest.
Modern browsers have excellent print engines. Chrome's print-to-PDF output is identical to what Puppeteer produces — because Puppeteer is Chrome under the hood. You get:
Add a <style> block with print-specific rules:
<style>
@media print {
body { margin: 1cm; font-family: Georgia, serif; font-size: 11pt; }
h1 { font-size: 18pt; page-break-after: avoid; }
table { page-break-inside: avoid; }
a { color: black; text-decoration: none; }
}
</style>
Key rules to include:
margin on body to control page marginspage-break-inside: avoid on tables and code blocksYour HTML never leaves your browser. The iframe renders locally, and window.print() triggers your OS print system directly. Nothing is uploaded.