<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
 
use Dompdf\Dompdf;
class Pdf extends Dompdf{

    public $filename;
    public function __construct(){
        parent::__construct();
        $this->filename = "laporan.pdf";
    }

    protected function ci()
    {
        return get_instance();
    }

    public function load_view($view, $data = array()){
        $html = $this->ci()->load->view($view, $data, TRUE);
        $this->load_html($html);

        $this->render();
            $this->stream($this->filename, array("Attachment" => false));
    }
}


/* End of file pdf.php */
/* Location: ./application/libraries/pdf.php */
/* Please DO NOT modify this information : */
/* Generated by IDETech Codeigniter CRUD Generator 2021-10-06 14:50:55 */
/* http://idetech.id */