Kcko
4/11/2016 - 11:58 AM

MPDF , Nette , Latte, šablona do MPDF

MPDF , Nette , Latte, šablona do MPDF

	<?php 
	
	    $mpdf = new \mPDF('utf-8','A4','','',12,12,2,2,10,10, 'P'); 
	    $mpdf->useOnlyCoreFonts = true;
	    $mpdf->SetDisplayMode('fullpage');
		$this->template->setFile(INDEX_DIR . '/app/FrontModule/templates/ConfigIt/pdf.latte');
        $mpdf->WriteHTML((string) $this->template);
        $mpdf->Output($name, 'd');
		$this->terminate();