tabSpaces = 6; $mpdf->allow_charset_conversion=true; $mpdf->charset_in='windows-1252'; //============================================================== $html = '

mPDF

ChangeLog

'; $text = file_get_contents('../CHANGELOG.txt'); $html .= PreparePreText($text); // This would also work: // $html .= '
'.htmlspecialchars($text).'
'; $html .= '
'; //============================================================== $mpdf->WriteHTML($html); $mpdf->Output(); exit; ?>