Welcome Guest, Not a member yet? Register   Sign In
Where to create page plugin in dompdf ?
#4

[eluser]Thorpe Obazee[/eluser]
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function pdf_create($html, $filename)
{
require_once("dompdf/dompdf_config.inc.php");

$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream($filename.".pdf");
}
?>

name this file to “to_pdf_pi.php”


Messages In This Thread
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 12:38 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 12:43 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 12:46 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 01:12 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 01:24 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 01:28 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 01:38 AM
Where to create page plugin in dompdf ? - by El Forum - 06-26-2009, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB