How can I replace text in a docx document textbox using Apache POI?

I can get the text of textboxes using the code described in the answer How to get text from a textbox in MS Word document using Apache POI?

But I haven't found a way to edit the text in the textbox, for example to replace some placeholders. Iterating over embeddedPara and setText () loops doesn't work. I'm using apache poi 3.13.

+3
java ms-word apache-poi


source to share


No one has answered this question yet

See similar questions:

1
How to get text from textbox of MS Word document using Apache POI?
0
create textbox in document.docx using apache poi

or similar:

1804
How do you display code snippets in MS Word save format and syntax highlighting?
thirty
Replacing text in Apache POI XWPF
2
How do I find / replace a placeholder in a .docx file using Apache POI?
2
Replace text in docx textbox with Apache POI
2
Replacing text in Apache POI XWPF not working
1
Replace text in excel xlsx file with Apache POI
1
How to get text from textbox of MS Word document using Apache POI?
1
How to hide text in a Word document using Apache POI library
1
Replacing text in a text document with apache POI fails because Run Objects of Paragraph are split into placeholder
0
Replace text templates inside.docx (Apache POI, Docx4j or others)



All Articles