i am using mpdf library, it works perfect individuall in an folder on server, but if i include mpdf library in my application, then it output a blank page. if i see the HTML via firebug then display
<html>
<head></head>
<body></body>
</html>
below is my page code
session_start();
error_reporting(-1);
//include files and mpdf library
$id=(int)$_GET['id'];
//some mysql query and and
$html = "<div id=\"print_target_box\" style=\"display:block;\">";
// some php mysql manipulations
$html .="<b>..</b>
<strong>...</strong><br/>";
// many div and block concatenate by $html.="";
$html .="</div>";
$mpdf = new mPDF();
$mpdf->debug = true;
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
echo phpinfo();
returns under zlib section
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
and so on…
i also read this link
one image
`go.gifwas missing on server and this does not displaying errorbcoz error_reporting was set to
0in below included php page..If you edit file mpdf.php and find the line with that error message in it:
change this to:
it may show what is going wrong.
reference:
http://mpdf.bpm1.com/forum/comments.php?DiscussionID=235