mardi 18 février 2020

mPDF generate more than one pages and blank pdf page when computer connected on the network

I tried to print PDF file from html view when i was offline with localhost using mPDF it worked fine. But i got the problem when i connected my computer to the internet then trying to do the same function i got blank PDF with many pages. What could be a problem? I am using laravel 6.2

My codes to print a pdf.

$pdf = new Mpdf([
             'format' => 'A4-P',
              'margin_left' => 0,
              'margin_right' => 0,
              'margin_bottom' => 0,
              'margin_top' => 0,
        ]);
        $pdf->SetDisplayMode(90);
        $pdf->WriteHTML(\Illuminate\Support\Facades\View::make('tests'));
        $pdf->Output();


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wt4MQz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire