iText® is an open source library that allows you to create and manipulate PDF documents. It enables developers looking to enhance web- and other applications with dynamic PDF document generation and/or manipulation.
iText is available in Java as well as in .Net and Android.
XFA Worker, Dynamic Form Flattener
XFA Worker is a closed source product built on top of iText that flattens dynamic, pure XFA forms.