I am trying to create word document from word template which I have uploaded in to repository through alfresco javascript.Issue is that arguments which I am passing during processTemplate is not replaced with place holders.Script which I am using is as follow.
var fileNode=companyhome.childByNamePath("/Data Dictionary/Node Templates/template1.doc");
var doc1=space.createFile("testtemplate.doc");
var props = new Array(1);
props["docname"] = "tesstttt";
var content=document.processTemplate(fileNode,props);
doc1.properties.content.content= content;
doc1.mimetype = "application/msword";
doc1.save();
My word template is simple with following content.
Hello how are you ${docname}