MPDF No Output (Blank Page)

I'd installed the MPDF utility in order to convert HTML&CSS to PDF reports. So far things have been working just fine, until I've tried converting certain page to PDF ,and there's no output. I have to mention that i'm able to display the page regularly through browser - the problem only comes up when i'm trying to convert it to PDF - then I receive blank page. Moreover, there are no encoding problems (part of the output is written in Hebrew, but I've already overcame this obstacle) Here's part of the code :

if($customer!=$tempCustomer) < if($tempCustomer!="") < $html.=(""); $html.=("
סהכ".$sumTotal."
"); $html.=("
משטחים".$sumPallets."
"); > $sumTotal=0; //RESET SUM OF EACH CUSTOMER $sumPallets=0; //RESET PALLETS COUNT $html.=(""); $html.=("
"); // $html.=("לקוח: ".$customerName."
"); $sumTotal=0; $sumPallets=0; $tempCustomer=$customer; $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $sumTotal+=$total; $sumPallets+=$pallet; > else < $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $sumTotal+=$total; $sumPallets+=$pallet; > /* $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); $html.=(""); */ > $html2='אבדרכדכגכגכגכג'; $html3='אבדרכדכגכגכגכג'; //============================================================== //MPDF SETTINGS - CONTINUE $mpdf->SetAutoFont(); $mpdf->autoFontGroupSize = 1; $mpdf->SetDirectionality('rtl'); $mpdf->useLang = true; $mpdf->WriteHTML($html); $mpdf->Output(); exit; Any suggestions? Thanks in advance asked Oct 12, 2011 at 8:13 user975343 user975343

3 Answers 3

Have you tried debugging it? Per mpdf's site: If you get nothing but a blank screen on your browser, it may be because there is a script error. Turn on debugging at the start of your script.

debug = true; $mpdf->WriteHTML("Hallo World"); $mpdf->Output(); ?> 

If the above works, then it's something with your code. Sometime, even a single space before any html output can throw off MPDF

מגדלתאריךתעודהפריטסוגגודלכמותמשקלמחיר מכירהסכוםמשטחים
".$grower."".$date."".$form."".$item."".$type."".$size."".$quantity."".$weight."".$price."".$total."".$pallet."
".$grower."".$date."".$form."".$item."".$type."".$size."".$quantity."".$weight."".$price."".$total."".$pallet."
".$form."".$form."".$form."".$form."".$form."".$form."".$form."".$form."".$form."".$form."