| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/public_html/requiredsecond/MPDF53/examples/ |
Upload File : |
<?php
include("../mpdf.php");
$mpdf=new mPDF();
$mpdf->tabSpaces = 6;
$mpdf->allow_charset_conversion=true;
$mpdf->charset_in='windows-1252';
//==============================================================
$html = '
<h1>mPDF</h1>
<h2>ChangeLog</h2>
<div style="border:1px solid #555555; background-color: #DDDDDD; padding: 1em; font-size:8pt; font-family: lucidaconsole, mono;">
';
$text = file_get_contents('../CHANGELOG.txt');
$html .= PreparePreText($text);
// This would also work:
// $html .= '<pre>'.htmlspecialchars($text).'</pre>';
$html .= '</div>';
//==============================================================
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
?>