I am using dompdf to print a certificate of completion. However I'm having trouble making tables stay in place and act right. So I figured I'd use a div box, but it won't display at all. It times out and won't open.
Any idea why dompdf doesn't like DIV tags?????
here is the div tagcertificat.html)
<div id="box" style="width:1100px; border:double #0099CC; height:900px; padding:25px">
hello
</div>
Here is the dompdf page:
$myFile = "certificate.html";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
$html = $theData;
$size = 'letter';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->set_paper($size, "Landscape");
$dompdf->render();
$dompdf->stream("my_pdf.pdf", array("Attachment" => 0));
Any idea why dompdf doesn't like DIV tags?????
here is the div tagcertificat.html)
<div id="box" style="width:1100px; border:double #0099CC; height:900px; padding:25px">
hello
</div>
Here is the dompdf page:
$myFile = "certificate.html";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
$html = $theData;
$size = 'letter';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->set_paper($size, "Landscape");
$dompdf->render();
$dompdf->stream("my_pdf.pdf", array("Attachment" => 0));