WriteHTML(InvoiceGenerator::generate($config)); $mpdf->Output(); } else { echo InvoiceGenerator::generate($config); }