Word Document Generator
How it works:
This demo generates Word documents from a template file located in
Fill in the form below and the template variables
This demo generates Word documents from a template file located in
/word_template/sample_template.docx.Fill in the form below and the template variables
${'${'}name}, ${'${'}email}, ${'${'}date}, and ${'${'}content} will be replaced with your values.
Important: You need to create a valid Word template first!
- Create a new Word document in Microsoft Word
- Add text with variables:
${'${'}name},${'${'}email},${'${'}date},${'${'}content},${'${'}image} - Save as .docx format (not .doc)
- Upload to:
c:\docker\floe\www\word_template\sample_template.docx
Template Variables
Your Word template should contain these variables:
${'${'}name}- Will be replaced with the name field${'${'}email}- Will be replaced with the email field${'${'}date}- Will be replaced with current date/time${'${'}content}- Will be replaced with the content textarea${'${'}image}- Will be replaced with uploaded image (or removed if no image)
Note: Upload your own .docx template to /word_template/sample_template.docx
with these variables to see them replaced. For images, just add ${'${'}image} on its own line.