Fast HTML to PDF with playwright-core using system Chrome (no browser download)
@rishabhcli▲ 0 net votes
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.