vendredi 7 octobre 2016

laravel 5 wkhtmltopdf load view with link like images

I am trying to use snappypdf for laravel ti use wkhtmltopdf

This is my code to generate my pdf :

    public function makePDF($id){

    $data = [];
    $pdf = SnappyPdf::loadView('ribbon.report.devis', $data);

    return $pdf->download('invoice.pdf');

}

My problem is that in my blade view i have a view with link to css and to images. And It try to load but i have a timeout error. Even if I set the timeout to more time the problem stay and the PDF did not generated.

However, when instead of img src ="" I put img src = "/test/..." The pdf Is generated but images not displayed. Somebody know about this problem?

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire