Print margins in DOMPDF

The following style will effectively set the margins of your document to 0:

@page { margin: 0px; }
body { margin: 0px; }

@page is used by dompdf 0.6.0, body by dompdf 0.5.1. You can modify the margin of the page and body independently, though right now the margin of the two together acts as your content bounds.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)