I have a template document with the correct layout for the document that will be generated and given to users.
Thanks for your inquiry. It would be great if you please share the input and expected output documents here for our reference.
Please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate how you want your final Word output be generated like. We will then provide you more information on this along with code.