Tag Archives: mpdf

Generating pdf using mPDF library in Symfony

This article has moved to this location.


In my previous article, i’ve shown you how to generate pdf using DomPDF library. In this article, i’ll show you how to generate pdf in symfony using mPDF library. mPDF has the same concept with DomPDF, generate pdf from the html content.
mPDF offers a lot of features. Here are some features offered by mPDF :

  1. Right-to-left languages
  2. Nested block-level elements (e.g. P, DIV) are supported, with enhanced CSS support e.g. margins, borders, padding, line-height, background colours etc.
  3. CSS style attributes now fully support font, font-size, color, and background color (for highlighting) plus many more.
  4. Table cell padding and borders are supported.
  5. List indenting can be defined.
  6. Custom tags added – PAGEBREAK, COLUMNBREAK, INDEXENTRY

Read More

Advertisements