It is currently Tue Nov 26, 2024 10:30 pm
public static void main(String[] args) throws Exception {
String inputfilepath = System.getProperty("user.dir") + "/checkbox.docx";
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputfilepath));
template = WordprocessingMLPackage.load(this.getClass().getClassLoader().getResourceAsStream(templatePath));
MainDocumentPart documentPart = template.getMainDocumentPart();
documentPart.addStyledParagraphOfText("Heading1", "test1");
documentPart.addStyledParagraphOfText("Heading1", "test2");
documentPart.addStyledParagraphOfText("Heading1", "test3");
Total posts 10111 • Total topics 2842 • Total members 2074