It is currently Sat Oct 18, 2025 7:45 am
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 10200 • Total topics 2872 • Total members 2100