title: PHP & FPDF - How do I get the positions of where I want to place my output?
body: <p>I'm using FPDF &amp; FPDI for writing to an existing 1.4 PDF. I am basically filling in form data by outputting the text where it needs to be. (is there an easier way?)</p>
  
  <p>I have a pretty basic test going:</p>
  
  <pre><code>$test['key'] = array(
  'x' =&gt; $minLeft,
  'y' =&gt; $minTop,
  'output' =&gt; 'Hello, world'
  );
  
  $test['key2'] = array(
  'x' =&gt; $minLeft * 5.9,
  'y' =&gt; $minTop + 8,
  'output' =&gt; 'Hello again.'
  );
  </code></pre>
  
  <p>Which lets me place it where I want to, exactly where I want to by a previously defined variable and some simple math. But this means that I have to blindly place each object, where there will be a lot of objects. How can I get the positions of where I want to place, rather than guessing?</p>