title: Render embedded image in PDF using Flying-Saucer from html
body: <p>I have an xhtml document that I'm turning into a PDF using flyingsaucer. The xhtml has several  tags that have a base64 encoded images inline.  The source of the xhtml is dynamic so the structure of where the image tags are can vary. This is a sample of what the tag looks like:</p>
  
  <pre><code>&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAagAAAEuCAYAAADbW4YFAAAgAElEQVR4Aex9CYBdRZ ...
  </code></pre>
  
  <p>When I look at the html in a browser, the image appears correctly, however, the img element doesn't get rendered in the final PDF.  Here is how I'm rendering it out to create the PDF.</p>
  
  <pre><code>ITextRenderer renderer = new ITextRenderer();
  renderer.setDocument(builder.parse(source), "");
  renderer.layout();
  renderer.createPDF(response.getOutputStream(),true);
  </code></pre>
  
  <p>Can anyone let me know what approach I should take to accomplish this?  I saw <a href="https://stackoverflow.com/questions/10316607/render-image-from-servlet-in-flyingsaucer-generated-pdf">this posting</a>, however, I'm using inline images so I can't see how I can accomplish this using Edd's solution.</p>
  
  <p>Thanks in advance</p>