DocsUpdated 18 Oct 2026
Force Chrome print media CSS in PDF
Add these comments anywhere in your output HTML to control how the headless Chrome engine creates the PDF.
Use PRINT media:
<!-- ChromePDF print --> Use the paper size from your CSS @page rule (for example @page { size: A4; }):
<!-- ChromePDF csspagesize --> Landscape orientation:
<!-- PDF Landscape --> Leave out the page number footer:
<!-- PDF No pageno -->