Dompdf is a CSS 2.1 compliant HTML layout and rendering engine written in PHP. It will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements.