:star: Codebase for various tutorials about Java, Spring Boot, AWS, Kotlin, and Testing
770
stars
759
forks
source link
Export file docx by template using docx4j output auto add "generated with Docx4j on Wildfly" to the footer #150
Open
thangnm11 opened 1 year ago
Blog post you are referring to
link blog: https://rieckpil.de/howto-generate-documents-from-word-templates-with-docx4j-on-wildfly-14/ link src code: https://github.com/rieckpil/blog-tutorials/tree/master/generate-documents-from-word-templates-with-docx4j-on-wildfly14
Expected Behavior
Show by template input.docx without add more in footer
Current Behavior
Show in footer of file output.docx "generated with Docx4j on Wildfly"
Steps to Reproduce
lib maven pom.xml
code java: public static void generateDocxFileFromTemplate() throws Exception { // TODO - ref: https://github.com/rieckpil/blog-tutorials/tree/master/generate-documents-from-word-templates-with-docx4j-on-wildfly14 InputStream templateInputStream = new FileInputStream("C:\Users\thangnm\Desktop\template (1).docx");
Please help me, thanks!!!