(out.toByteArray());
    response.getOutputStream().flush();</pre>
<div class="note">
<div class="label">Note</div>
<div class="content">
          Buffering the generated PDF in a ByteArrayOutputStream is done to avoid potential 
          problems with the Acrobat Reader Plug-in in Microsoft Internet Explorer.
        </div>
</div>
<p>
          The <span class="codefrag">Source</span> instance used above is simply an
          example.  If you have to read the XML from a string, supply
          a <span 