DOMPDF: HTML to PDF converter for PHP

dompdf is (mostly) a CSS 2.1-compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer: it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes.

Limitations (Known Issues)

  • Table cells are not pageable, meaning a table row must fit on a single page.
  • Elements are rendered on the active page when they are parsed.
  • Embedding “raw” SVGs (<svg><path…></svg>) isn’t working yet, you need to either link to an external SVG file or use a DataURI like this: $html = ‘<img src=” data: image/svg+xml;base64,’. base64_encode($svg) . ‘” …>’; Watch #320 for progress
  • Does not support CSS flexbox.
  • Does not support CSS Grid.

Installation can be done by following way

https://github.com/weprovide/magento2-module-dompd

Leave a comment

Your email address will not be published. Required fields are marked *