TIC\DpdfBundle\Base\PDFService::view2http
Initialisation à partir d'une vue Twig pour générer un PDF retourné dans une StreamedResponse.
Signature
public function view2http(string
$filename,
[string
$twig_view = NULL,
[array
$view_params = ,
[array
$pdf_options = ]]] )
Parameters
$filename
—
string
- Nom du document PDF à télécharger
$twig_view
—
string
- Chemin du template twig à générer
$view_params
—
array
- Variables à injecter dans le template (peut contenir 'locale')
$pdf_options
—
array
- Surcharge des options du moteur html2pdf
Returns
- StreamedResponse
- Objet à retourner par le controlleur