Yii Print to PDF

Yii-PDF Extension ( Download )

Small Yii extension, that wraps a few PHP libraries (mPDF and HTML2PDF so far) to convert HTML to PDF

Resources

  • Extension’s GitHub repository
  • mPDF – is a PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support
  • HTML2PDF – is a PHP class using FPDF for the PHP4 release, and TCPDF for the PHP5 release. It can convert valid HTML and xHTML to PDF

Requirements

  • Yii 1.1.9 or above
  • mPDF version 5.3 (has been released 2011-07-21) or above
  • HTML2PDF version 4.03 (has been released 2011-05-27) or above

Official documentation and examples