Service/MpdfService.php
public function generatePDFResponseFromHTML($html, array $args = array())
    {
        $response = new Response();
        $response->headers->set('Content-Type', 'application/pdf');

        $response->setContent(
            $this->generatePDF($html, $args)
        );

        return $response;
    }
public function generatePDFResponseFromHTML($html, array $args = array())
    {
        $response = new Response();
        $response->headers->set('Content-Type', 'application/pdf');

        $response->setContent(
            $this->generatePDF($html, $args)
        );

        return $response;
    }
@param       $html
@param array $args

@return Response