Set the text variable and table template to be replaced in the word template, and generate a new document by calling the API to replace the template.