?
Current Path : /home1/savoy/public_html/savoyglobal.net/sims/draft/school/application/helpers/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sims/draft/school/application/helpers/to_pdf_helper.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); function pdf_create($html, $filename,$landscape="") { require_once("dompdf/dompdf_config.inc.php"); $filename = $filename.".pdf"; $dompdf = new DOMPDF(); $dompdf->load_html($html); if($landscape=='true') { $dompdf->set_paper("a4", "landscape" ); } $dompdf->render(); $dompdf->stream($filename); }