Word Document Generator

How it works:
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!
  1. Create a new Word document in Microsoft Word
  2. Add text with variables: ${'${'}name}, ${'${'}email}, ${'${'}date}, ${'${'}content}, ${'${'}image}
  3. Save as .docx format (not .doc)
  4. Upload to: c:\docker\floe\www\word_template\sample_template.docx
Upload an image to replace the ${'${'}image} variable in your template. Supports JPG, PNG, GIF. Max 5MB.


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.