Java Word: attach a tempalte to a generated document

I see methods in Document class to dettach template associated with a docuemnt. Could you a reverse by attaching a template to a generated document?
Thanks,
Sean

Hi

Thanks for your inquiry. You can use Document.setAttachedTemplate() to achieve this. Please see the following link for more information:
https://reference.aspose.com/words/java/com.aspose.words/document/#getAttachedTemplate
Best regards.