I\'m trying to generate a PDF using DOMPDF. I have some HTML which is then converted into a PDF.
But I have a problem. When I put an object at the top of the page (e
sometimes you also need to set
html { margin: 0px}
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.