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

        $content = $this->generatePdf($html, $argOptions);
        $response->setContent($content);

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

        $content = $this->generatePdf($html, $argOptions);
        $response->setContent($content);

        return $response;
    }
public function generatePdfResponse ( $ html , array $ argOptions = array ( ) ) { $ response = new Response ( ) ; $ response -> headers -> set ( 'Content-Type' , 'application/pdf' ) ; $ content = $ this -> generatePdf ( $ html , $ argOptions ) ; $ response -> setContent ( $ content ) ; return $ response ; }
Generates an instance of Response class with PDF document
@param string $html
@param array $argOptions
Generates an instance of Response class with PDF document