title: PDF library tcpdf in landscape orientation and pdf->SetXY doesn't work as expected?
body: <p>I can not figure this one out how tcpdf recalculates x and y coordinates if orientation is landscape. The only way i can get a bit of control is to put text in a writeHTML </p>
  
  <pre><code>// QR code
  $style = array(
      'border' =&gt; false,
      'padding' =&gt; 'auto',
      'fgcolor' =&gt; array(0,0,0),
      'bgcolor' =&gt; false
  );
  $pdf-&gt;SetXY(0, 0);
  $pdf-&gt;write2DBarcode('http://www.google.com/', 'QRCODE,H', 0, 1, 40, 40, $style, 'N');
  // set text content
  $pdf-&gt;SetXY(2, 37);
  //$pdf-&gt;SetXY(30, 7);
  $pdf-&gt;SetFontSize(10);
  $textData = '&lt;p&gt;Matthew Pitt&lt;/p&gt;'
          . '&lt;p&gt;Google Light Company&lt;/p&gt;';
  
  $pdf-&gt;writeHTML($textData, true, false, false, false, 'R');
  </code></pre>
  
  <p>and the result is</p>
  
  <p><a href="https://i.stack.imgur.com/5CFsJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5CFsJ.png" alt="enter image description here"></a></p>
  
  <p>Ideally I like to layout the text on the right of the QR code. Multiline if a name is very long and text-align left?? Any tips, suggestions?</p>