How to get started

With EDocGen, you can generate Word and PDF documents from Existing Word and PDF templates.

Let's say you are generating invoices from your invoice template.

Step1: Add tags for dynamic fields

First step is to add dynamic fields (Ex: Customer Name) in your invoice template.

Sample Invoice Template

You can open your template in Microsoft Word / PDF editor and make changes.  If you are familiar with mail merge, you know how to go about adding tags for dynamic fields. If not, I'm going to show with few examples in the following section.

EDocGen supports the dynamic population of text, tables, images, hyperlinks, etc. Once you place relevant tags in the template, the system understands that those are dynamic fields for filling. By placing the tags, you are converting your existing template into  EDocGen ready template. Yes, it is that simple.

Let's look at how to create merge tags for each of these.

Text Merge:

Surround your dynamic text field with { } (single flower brackets). Please ensure that the tag field is a single word without spaces.

* singlewordwithoutspaces*

If you want a multi-word tag name, combine individual words using underscore  (_).

e.g.   {name}



Table Merge:

  • Add {#tableid} at the beginning of the table and {/tableid} at the end of the table as depicted below. It can be any name and shouldn't have spaces
  • Surround column names with { }
     Column 1      Column 2       Column 3

{#tableid tag}

{Column1 tag}

{Column2 tag}

{Column3 tag}

{/tableid tag}





{#details} {name}


{address} {/details}

Notice starting of table with {#details} and ending with {/details}. The system would loop over the data to populate multiple rows in this table.

Create Document Template

Images: – Populate images into a document template at runtime. The image is auto-sized to the set dimensions.

{%image id=”imagemarker” width=”454” height=”670”}

Use the same approach for populating online images, QR codes, bar codes, etc.

Content Block – Reusable content blocks can be inserted into the document template at runtime

{contentblockid type=”paragraph”}

Hyperlinks – Similar to dynamic text but the hyperlinks {~linkid}retain the style in generated documents

Lists and Loops – Following loop creates a list of games

{#Games} -{Game} {/Games}

Conditional StatementsIF/ELSE for customizing document creation as per business requirements

Calculations – Arithmetic operators +, -, *, / for performing calculations on dynamic data

Step 2: Document Upload

Upload your document by clicking '+" sign at right top.  Currently, the system accepts only 'DOCX" and PDF templates.

Step 3: Document Generation

Hover your mouse over document template and click on"Create document" action button.

Select the relevant option for populating the template.  Selecting  "Generate Document using form inputs" option creates a fillable form for entering dynamic data into the template.

EDocGen supports filling of Excel, XML and JSON data into the document template for generating bulk documents. For bulk generation, select the second option "Generate bulk documents using JSON/XML/Excel as input". You would be asked to upload your data file.  After data file upload, map your dynamic field names with data file headers.

Step 4: Document Output

By default, all generated documents are placed in the Output folder. You will find your file there. Hover over the document and you will see options to download, mail, or sync it to Google drive.