protected function ConvertToPdf::init in PDF using mPDF 8
Instantiate Mpdf object.
1 call to ConvertToPdf::init()
- ConvertToPdf::generator in src/
Conversion/ ConvertToPdf.php - Generate the PDF file using the Mpdf library.
File
- src/
Conversion/ ConvertToPdf.php, line 104
Class
- ConvertToPdf
- Class ConvertToPdf.
Namespace
Drupal\pdf_using_mpdf\ConversionCode
protected function init() {
$mpdf_config = $this
->getDefaultConfig();
$this->mpdf = new Mpdf($mpdf_config);
}