Document Generation
Overview
The Document Generation feature enables creation of dynamic documents by combining templates with data sources using the Apache FreeMarker templating engine. This powerful system allows for automated document creation with customizable content.
Benefits
- Efficiency: Automate repetitive document creation tasks
- Customization: Leverage Apache FreeMarker's powerful templating features
- Scalability: Handle high-volume document generation
- Flexibility: Support for multiple output formats (DOCX, PDF)
Template Syntax Guide
FormKiQ uses Apache FreeMarker for template processing. Here are common syntax examples:
Basic Variables
Hello, ${user.name}!
Conditional Statements
<#if user.age >= 18>
Welcome to the adult portal.
<#else>
Welcome to the kids' section.
</#if>
List Iteration
<#list products as product>
- ${product.name}: ${product.price}
</#list>
Default Values
Customer Name: ${customer.name!"Unknown Customer"}
String Operations
Customer Name (Uppercase): ${customer.name?upper_case}
Order Total: ${order.total?string.currency}