diff --git a/src/LaravelMpdf.php b/src/LaravelMpdf.php index c66c56e..4f7e229 100755 --- a/src/LaravelMpdf.php +++ b/src/LaravelMpdf.php @@ -79,6 +79,9 @@ public function __construct($config = []) // use_dictionary_lbr $this->mpdf->useDictionaryLBR = $this->getConfig('use_dictionary_lbr'); + + // use templates + $this->mpdf->SetDocTemplate($this->getConfig('doc_template_file'), $this->getConfig('doc_template_continue'), $this->getConfig('doc_template_continue2pages')); } protected function getConfig($key) @@ -142,4 +145,4 @@ public function stream($filename = 'document.pdf') { return $this->mpdf->Output($filename, Destination::INLINE); } -} \ No newline at end of file +}