Welcome Guest, Not a member yet? Register   Sign In
i am using a pdf library using dompdf i have a problem
#5

[eluser]dinisptc[/eluser]
$this->load->library('pdf');
$this->pdf->load_view('onplans/list_my_projects_avatar',$Ddata);
$this->pdf->render();
// $this->pdf->stream("BEMVINDO.pdf",array("compress" => true));
$filename="teste";
$report_config = $this->config->item('report');
$report_dir=$report_config['upload_path'].$this->projects_model->check_user_id().'/reportpdf/';
print_r($report_dir);
if (!is_dir($report_dir)) {
mkdir($report_dir,0777,true);
}

$pdfoutput = $this->pdf->output();
//$filename = DIR_BASIC.APARENCIA."/".DIR_DEFAULT_UPLOAD."/dompdf/$dir/$filename.pdf";
$filename ="$report_dir/$filename.pdf";
$fp = fopen($filename, "a");
fwrite($fp, $pdfoutput);
fclose($fp);


Messages In This Thread
i am using a pdf library using dompdf i have a problem - by El Forum - 06-05-2013, 04:14 AM
i am using a pdf library using dompdf i have a problem - by El Forum - 06-05-2013, 04:36 AM
i am using a pdf library using dompdf i have a problem - by El Forum - 06-05-2013, 04:37 AM
i am using a pdf library using dompdf i have a problem - by El Forum - 06-05-2013, 04:38 AM
i am using a pdf library using dompdf i have a problem - by El Forum - 06-05-2013, 05:05 AM
i am using a pdf library using dompdf i have a problem - by El Forum - 07-18-2013, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB