How to change the orientation of the page with the mPDF library?

2

I have a problem with a pdf generated with the mPDF library, I need to change the orientation of the page from vertical to horizontal ... can someone help me?

    
asked by Miguel Nieto 02.02.2018 в 20:23
source

1 answer

2

Facíl:

$mpdf = new \Mpdf\Mpdf(['orientation' => 'L']);

By default it is P (Portrait / Verticar).

    
answered by 02.02.2018 в 20:27