Set paper margins in dompdf.

dompdf generates margins according to its own standards. But you can change this behavior in css for your html file.
Add the following rule to css:

This will set top margin to 0.3em and left to 0.6em