title: tcpdf portrait custom page size
body: <p>I wish to create a custom page size in TCPDF. For that I have the following piece of code:</p>
  
  <pre><code>$width      = 80;
  $height         = 58; 
  $pageLayout     = array($width, $height);
  $pdf            = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, $pageLayout, true, 'UTF-8', false);
  </code></pre>
  
  <p>I am expecting a page of 80mm x 58mm. But the above code creates a page of 58mm width and 80mm height. </p>
  
  <p>So instead of PDF_PAGE_ORIENTATION, I gave 'L' and it gave me the result right. But when I print the page from the browser, the print out comes rotated as would be expected of a Landmark orientation.</p>
  
  <p>Does TCPDF create automatic portrait orientation by adjusting the width and the height?</p>
  
  <p>Any help?</p>