Alternatives to the DOMPDF [closed]


You see, I have already spent too much time with the problem of not being able to print PDF documents in my Laravel project. Therefore, I would like to know if there are alternatives to DOMPDF, the method I use to print PDF in Laravel, to see if with another method I can print in PDF.

I have already talked about this problem in other of my questions, but I show you my error message:

And my code:

use Barryvdh\DomPDF\Facade as PDF;

public function imprimir(Juego $j){
        $pdf = PDF::loadView('pdf.juego', compact('j'));
        $ruta='C:/Users/pcx/Desktop/Juego '.$j->numero.' '.$j->nombre.'.pdf';
        file_put_contents($ruta, $salida);
        return back()->with('message',['success','El PDF con los datos del juego se han creado con exito. Buscalo en tu escritorio.']);
asked by Miguel Alparez 30.08.2018 в 16:50

0 answers