title: Document template engine
body: <p>I need to choose a good template engine to generate documents in our application. The requirements are:</p>
  
  <ul>
  <li>Generate Microsoft Word and PDF at least</li>
  <li>Good templating capabilities including support for simple replacable parameters, arrays/lists, and hierarchies if possible</li>
  <li>Allow to include custom graphics</li>
  <li>Ideally templates should be editable with Microsoft applications or other user-friendly equivalent</li>
  </ul>
  
  <p>The task is to feed some data structure from the system and make a nice document from it. Examples include reports, business proposals, product visions and more. Ideas are welcome :)</p>
  
  <p>One approach is to write one myself but maybe there is something out-of-the-box and not necessarily free. Technically best if it could be cross-platform but Windows-only is fine as well as a last resort.</p>