Force Chrome print media CSS in PDF Last updated: 25. Mar 2025

Add this comment anywhere in your output HTML code. This will force Chrome Headless engine to create PDF with print media css.

Use PRINT media:

<!-- ChromePDF print -->