title: Inserting an image with PHP and FPDF
body: <p>I'm trying to insert an image but do not want to specify the x and y coordinates. Is that possible?</p>
  
  <pre><code>$pdf-&gt;Image($image1, 5, 70, 33.78);
  </code></pre>
  
  <p>I want to be able to specify the size (33.78) but not the x and y so that it moves based on the content.</p>
  
  <pre><code>$pdf-&gt;Write( 70, $reportTitle );
  $pdf-&gt;Ln( 45 );
  $pdf-&gt;SetFont( 'Arial', '', 12 );
  $pdf-&gt;Write( 6, $reportSubtitle );
  
  /**
    Create product 1
  **/
  $pdf-&gt;Ln( 10 );
  $pdf-&gt;SetFont( 'Arial', '', 12 );
  $pdf-&gt;Write( 6, $prod1title );
  $pdf-&gt;Ln( 30 );
  $pdf-&gt;SetFont( 'Arial', '', 10 );
  $pdf-&gt;Write( 5, $prod1sub );
  $pdf-&gt;Ln( 30 );
  $pdf-&gt;Image($image1, 5, 70, 33.78);
  </code></pre>
  
  <p>The above is the code I use. If $reportSubtitle is two or three lines, it pushes $prod1title and $$prod1sub down, and inevitably under the image that is fixed. Is there no way to have the image act like the product title and subtitle and be pushed down too while still declaring the size?</p>