Hi everyone,
I am a novice in docx4j. I'm trying to replace text inside text boxes.
I already saw this topic docx-java-f6/changing-text-in-a-textbox-t1523.html
But when i tried, not only the strings were not replaced, the text boxes were deleted in the output file. The same occurs with other shapes like some horizontal lines. My code is very simple.
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File("template.docx"));
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
HashMap<String, String> ...