Dealing with Dompdf as of Summer 2016

Css floats are not supported.

Javascript does not work since it is php.

The most reliable way to get images is with the entire url e.g. design.orderlydrawer.com/images/

The same goes for css, javascript and other supporting files.

Z-index is really helpful, somethings appeared to not be showing because they were underneath. I think dompdf has some strange auto-z Index order – the browser didn’t need z-indexes.

To set a font or change the font size, use font: {size} {font}. Font-size and font-family didn’t work for me.

When you want to make a separate page, put a div at the end of one page like this:

<div style=page-break-after:always;></div>

Leave a Reply