Apache poi: delete image in XWPFDocument

I am writing an application that takes a .docx file with a bunch of empty paragraphs and tables and populates them programmatically using Apache POI with data from a db.

The .docx model I was provided with also has a series of images: my problem is I want to delete the ones I don't need (again, programmatically). I see there is a way to add pictures to XWPFRun (addPicture ()), but not to remove them.

Can this be done? How to remove image from .docx file using POI?

Thanks in advance!

+1
java ms-word apache-poi


source to share


No one has answered this question yet

See similar questions:

3
Deleting images in a .docx file

or similar:

1294
What is Apache Camel?
thirty
Replacing text in Apache POI XWPF
nine
how to add image to .docx document using Apache POI XWPF in java
3
Add custom (extended) properties to docx and Apache POI paragraphs
1
Apache POI receives interrupts from XWPFRun
0
Apache POI: POI ignores extra spaces in line
0
Apache POI docx - after changing the target docx file the file is corrupted
0
How to add paragraph or text between tables in a .docx file with apache POI
0
Moving MS Word docx with Apache POI and identifying sequence of tables, images and other elements
0
Java - POI - add image to header



All Articles
Loading...
X
Show
Funny
Dev
Pics