Server IP : 164.52.202.56 / Your IP : 216.73.216.204 Web Server : Apache System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : rubyaromatics ( 1052) PHP Version : 7.2.34 Directory (0755) : /home/rubyaromatics/public_html/crm/application/third_party/mpdf/examples/ |
[ Home ] | [ Terminal ] | [ Upload File ] |
---|
<?php ini_set("memory_limit","384M"); // This is because changelog.txt contains over 100000 characters, and preg_* functions in mPDF won't work. ini_set("pcre.backtrack_limit","200000"); 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;"> '; $lines = file('../CHANGELOG.txt'); $html .= '<pre>'; foreach($lines AS $line) { $html .= htmlspecialchars($line); } $html .= '</pre>'; $html .= '</div>'; //============================================================== $mpdf->WriteHTML($html); $mpdf->Output(); exit; ?>