I’m trying to set style in the document using .dotm file as mentioned in the documentation.
But unable to generate expected output.
Please have a look in the following code and attached files.zip (68.1 KB)
and let me know if any solution is available for the same.
Document doc = new Document("input.docx"); doc.setAutomaticallyUpdateStyles(true); doc.setAttachedTemplate("Normal.dotm"); doc.save("output.docx");
The expected output document should generate with the Arial font with size 10 as per the dotm file settings.