Service/MpdfService.php
public function generatePDF($html, $argOptions = array())
    {
        $defaultOptions = array(
            'outputFilename'    => '',
            'outputDestination' => 'S',
        );

        $options = array_merge($defaultOptions, $argOptions);
        $this->getMpdf()->WriteHTML($html);

        return $this->getMpdf()->Output($options['outputFilename'], $options['outputDestination']);
    }
public function generatePDF($html, $argOptions = array())
    {
        $defaultOptions = array(
            'outputFilename'    => '',
            'outputDestination' => 'S',
        );

        $options = array_merge($defaultOptions, $argOptions);
        $this->getMpdf()->WriteHTML($html);

        return $this->getMpdf()->Output($options['outputFilename'], $options['outputDestination']);
    }
@param       $html
@param array $argOptions

@return mixed