Export HTML Content to PDF using PHP mPDF library PHP 05 October 2022 comments Below following code generate UTF-8 encoded HTML content is exported to PDF file. Download mPDF library form GitHub using composer https://github.com/mpdf/mpdf Composer using PHP: php -r Read more Export HTML Content to PDF using PHP mPDF library