Using XML Forms Architecture (XFA) allows you to create dynamic interactive documents that change their structure based on the information entered as you fill them out.
This architecture also enables dynamic changes to object and document properties, such as images, text color/font/font size, object position and size, table sorting, and much more. For example, you can create diagrams based on the entered data.
Here are some illustrative examples of dynamic, interactive documents created using AEM Forms / Adobe LiveCycle Forms: