Cannot get right page size with TCPDF

Hi Eldy,

I am trying to upgrade from 2.9.0 to 3.0.0 but have some trouble updating my previous modifications I made.

Basically I was using “pdf_expedition_merou.modules” and transformed this into an A4 size with some other modifications.

Now whatever I try I cannot get the A4 size, nomatter what I try with the dimensions the page stays on a horizontal format…

Have attached my modifications and hope you or somebody else can take a look to see if you can see the problem.

Thanks in advance.

Did you do this into constructor:

	$this-\>page_largeur = 210;
	$this-\>page_hauteur = 297;
	$this-\>format = array($this-\>page_largeur,$this-\>page_hauteur);

Then to build pdf instance, you do
$pdf=pdf_getInstance($this->format);

Hi Eldy,

Thanks for your help.
Adding $pdf=pdf_getInstance($this->format); did the trick, thank you.