A l'intérieur du contrôleur Laravel, Quand je faispourquoi dompdf à l'intérieur de laravel 4.2 ne parvient pas à charger la chaîne html?
$html = '<h1><a name="top"></a>mPDF</h1>
<h2>Basic HTML Example</h2>
This file demonstrates most of the HTML elements.
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
';
$pdf = App::make('dompdf');
$pdf->loadHTML($html);
$pdf->save('my_stored_invoice.pdf')
Il fonctionne parfaitement.
Mais quand je fais ce
$pdf = App::make('dompdf');
$pdf->loadView('pdf.invoice');
$pdf->save('my_stored_invoice.pdf');
Mon navigateur se bloque avec l'URL d'appel, également apache se est ralenti. J'ai défini la limite INI 2048 Mo. S'il vous plaît me suggérer un moyen de sortir de ce problème. Merci d'avance.
J'ai trouvé le prob similaire. par quelqu'un ici http://www.dashinteractive.net/dompdf/index.php?v=3198802 –
Essayez ceci: '$ html = view ('pdf.invoice') -> render(); $ pdf = App :: make ('dompdf'); $ pdf-> loadHTML ($ html); $ pdf-> save ('my_stored_invoice.pdf') ' –