CONVERT TO PDF
HTML to PDF — Convert HTML to PDF
Convert an HTML file or web page markup into a PDF. Faithful output needs a headless browser to render the page — this tool is being rebuilt.
Estamos reconstruyendo esta herramienta
Estamos reconstruyendo esta herramienta para que funcione por completo en tu navegador: más rápida y más privada. Volverá pronto.
Converting HTML to PDF turns web markup — an .html file and its CSS — into a fixed, printable document, useful when a page, invoice template, or report exists as HTML and you need a shareable PDF that holds its layout.
The catch: HTML only becomes a page once a browser lays it out — applies the CSS, loads the fonts, computes where everything sits. Reproducing that faithfully needs a headless browser render, and it needs the CSS, fonts, and images the page references available at conversion time (self-contained HTML converts most predictably). That's why this is being rebuilt as a server-side render rather than a quick in-page script.
Frequently asked questions
- Why does HTML to PDF need a headless browser?
- HTML isn't a page until a browser interprets it — applying CSS, loading fonts, computing layout. To match what you'd see on screen, the conversion has to actually render the page, which is what a headless browser does.
- What's the difference between this and URL to PDF?
- This converts HTML markup or a file you provide. URL to PDF fetches a live web address first, then renders it. Both end in a headless-browser render; they differ in whether you supply the HTML or a link.