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

dompdf load_font.php generates incorrect cache

DomPDF is a wonderful library, which helps to generate PDF files on your server. It also gives a possibility to add custom fonts to setup. For this purpose there is a special utility load_font.php just run the following command line on your Linux box and you will get proper fonts for dompdf: ./load_font.php ‘Trebuchet MS’… Continue reading dompdf load_font.php generates incorrect cache