How to rotate pdf sheet Automatically in php

0

I'm doing a report in php with fpdf and I want to turn the page in order to add more fields.

How can I make it so that when it is generated automatically I can make the turn and show it to me horizontally?

    
asked by Andrex_11 13.03.2018 в 19:28
source

1 answer

0

If you are using the constructor you should place it in the parameters as follows:

FPDF([string orientación [, string unidad [, mixed formato]]);

or like this:

$pdf=new FPDF('P', 'mm', '300, 200');  

since it is so vertical:

$pdf=new PDF('P', 'mm', '200, 300');  
    
answered by 13.03.2018 в 19:48