title: Generating PDFs in Java web application
body: <p>I have a requirement to generate a (dynamic) PDF after a user has made a payment and attach it to an email and send it in my Java web application.</p>
  
  <p>I was thinking of using iText but I really don't like how all the formatting and layout gets mixed in with the content of the PDF, as per the example in this link: <a href="http://www.coderanch.com/how-to/java/ItextExample" rel="nofollow">http://www.coderanch.com/how-to/java/ItextExample</a></p>
  
  <p>The reason I don't like it being mixed together is because our UI guy won't be comfortable touching this Java code.</p>
  
  <p>What other options do I have? I don't really want to generate an XML file with the required data and then have to transform it, so I think XSL-FO might be out.</p>