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:

@page {
            margin-top: 0.3em;
            margin-left: 0.6em;
        }

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

1 comment

Leave a Reply

%d bloggers like this: