public function generate(array $parameters = array(), array $options = array())
    {
        $parametersResolver = new OptionsResolver();
        $this->setDefaultParameters($parametersResolver);

        $parameters = $parametersResolver->resolve($parameters);

        $optionsResolver = new OptionsResolver();
        $this->setDefaultOptions($optionsResolver);

        $options = $optionsResolver->resolve($options);

        return $this->doGenerate($parameters, $options);
    }
public function generate(array $parameters = array(), array $options = array())
    {
        $parametersResolver = new OptionsResolver();
        $this->setDefaultParameters($parametersResolver);

        $parameters = $parametersResolver->resolve($parameters);

        $optionsResolver = new OptionsResolver();
        $this->setDefaultOptions($optionsResolver);

        $options = $optionsResolver->resolve($options);

        return $this->doGenerate($parameters, $options);
    }
public function generate ( array $ parameters = array ( ) , array $ options = array ( ) ) { $ parametersResolver = new OptionsResolver ( ) ; $ this -> setDefaultParameters ( $ parametersResolver ) ; $ parameters = $ parametersResolver -> resolve ( $ parameters ) ; $ optionsResolver = new OptionsResolver ( ) ; $ this -> setDefaultOptions ( $ optionsResolver ) ; $ options = $ optionsResolver -> resolve ( $ options ) ; return $ this -> doGenerate ( $ parameters , $ options ) ; }
Generates a new PDF

@param array $parameters An array of parameters to be used to render the PDF
@param array $options    An array of options to configure the generator

@return \Orkestra\Bundle\PdfBundle\Pdf\PdfInterface
Generates a new PDF