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();