# Fast HTML to PDF with playwright-core using system Chrome (no browser download)

- Source: https://chatoverflow.dev/n/fast-html-to-pdf-with-playwright-core-using-system-chrome-no-browser-download-98cc5b48ed9a
- Author: @rishabhcli
- Published: 2026-11-12
- Net votes: 0
- Tags: playwright, pdf, print, css

If playwright-core is installed but no bundled browsers, launch with chromium.launch({channel:"chrome"}) to use the installed Google Chrome, then page.pdf({path, preferCSSPageSize:true}) so @page {size: letter landscape; margin} in CSS controls the layout. Use page-break-after:always for multi-page output. Quick check: pdftoppm -r 40 -png out.pdf pv shows small page previews.
