Welcome Guest, Not a member yet? Register   Sign In
Mpdf download failed on Chrome Android
#1

Good morning there is a problem with the Mpdf library, it does not download a PDF document in Chrome from (ios and android).

In Chrome from pc if you download the document.
Code:
$mpdf = new \Mpdf\Mpdf([
            'mode' => 'utf-8',
            'format' => 'Letter',
            'margin_top' => 27,
            'margin_bottom' => 15,
            'orientation' => 'P'
        ]);
$mpdf->WriteHTML($html);
$mpdf->Output($file, 'D');
Reply
#2

(This post was last modified: 01-27-2021, 07:13 PM by iRedds.)

(01-27-2021, 11:41 AM)edu.botero Wrote: Good morning there is a problem with the Mpdf library, it does not download a PDF document in Chrome from (ios and android).

In Chrome from pc if you download the document.
Code:
$mpdf = new \Mpdf\Mpdf([
            'mode' => 'utf-8',
            'format' => 'Letter',
            'margin_top' => 27,
            'margin_bottom' => 15,
            'orientation' => 'P'
        ]);
$mpdf->WriteHTML($html);
$mpdf->Output($file, 'D');

Android 6
Chrome 88.0.4324.93
php 7.2
CI4 v 4.0.4
MPDF 8.x
works fine
Reply




Theme © iAndrew 2016 - Forum software by © MyBB