api change to enable reading the template document once and generating many word documents with different inputs