Hi,
I am using dompdf V0.5.1.
I was having no issues when i was using the dompdf on my development
machine, everything was working fine. but when i upload the stuffs on
production server, the things went wrong.
I have following screen, when i hit the export to PDF button on my php
page:
dompdf.cls.phpframe_tree.cls.phpstylesheet.cls.phpframe.cls.phpstyle.cls.phpattribute_translator.cls.phpframe_factory.cls.phppage_frame_decorator.cls.phpframe_decorator.cls.phppage_frame_reflower.cls.phpframe_reflower.cls.phpblock_frame_decorator.cls.phpblock_positioner.cls.phppositioner.cls.phpblock_frame_reflower.cls.phptext_frame_decorator.cls.phpinline_positioner.cls.phptext_frame_reflower.cls.phptable_frame_decorator.cls.phpcellmap.cls.phptable_frame_reflower.cls.phptable_row_group_frame_decorator.cls.phpnull_positioner.cls.phptable_row_group_frame_reflower.cls.phptable_row_frame_decorator.cls.phptable_row_frame_reflower.cls.phptable_cell_frame_decorator.cls.phptable_cell_positioner.cls.phptable_cell_frame_reflower.cls.phpcanvas_factory.cls.phpcpdf_adapter.cls.phpcanvas.cls.phprenderer.cls.phpabstract_renderer.cls.phpfont_metrics.cls.php
Warning: Division by zero in /home/XXX/lib/dompdf/include/
cellmap.cls.php on line 501
Warning: Division by zero in /home/XXX/lib/dompdf/include/
cellmap.cls.php on line 509
Warning: Invalid argument supplied for foreach() in /home/XXX/lib/
dompdf/include/table_cell_frame_reflower.cls.php on line 72
block_renderer.cls.phptext_renderer.cls.phptable_cell_renderer.cls.phpimage_cache.cls.phpUnable
to stream pdf: headers already sent
could any one please help me out? Am i missing some thing. I have
checkded the dom extensions on server, they are enabled.
following is the php code:
function exportToPDF(){
$data = $_REQUEST['pdftext'];
if (isset($data) && !empty($data)) {
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//
EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<link media="print" rel="STYLESHEET" href="http://'.
$_SERVER['HTTP_HOST'].'//css/pdf_print.css" type="text/css" />
</head><body>';
$html .= $data;
$html .= "</body></html>";
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream($reportname." Report.pdf");
}
}
thanks in advance
VB