title: Wrap text around an image in rails and prawn
body: <p>I have a document with dynamic image and dynamic text and would like the text around the image. The image is right aligned on the landscape page. Here is what I have so far:</p>
  
  <pre><code>pdf.bounding_box([0,pdf.bounds.top - 50], :width =&gt; pdf.bounds.width, :height =&gt; pdf.bounds.height-50) do
    pdf.text @article.title, :size =&gt; 30, :style =&gt; :bold
    pdf.text @article.content, :align =&gt; :left
    # image
    pdf.bounding_box([pdf.bounds.right - 250, pdf.bounds.top], :width =&gt; 250, :height =&gt; 250) do
      pdf.image image_path, :width =&gt; 250
    end
  end
  </code></pre>
  
  <p>The text goes right underneath the image. I tried doing this <a href="https://stackoverflow.com/questions/2085151/ruby-prawn-how-to-wrap-text-around-an-aligned-right-image">ruby prawn how to wrap text around an aligned right image?</a> but it didn't work.</p>
  
  <p>Help is appreciated, thanks.</p>