Vote count:
0
Do anyone have any idea to delete pictures in .docx file? I'm using XWPFDocument and had tried like this. Please help.
List<XWPFPictureData> piclist = document.getAllPictures();
for (int i = 0; i < piclist.size(); i++)
{
for (XWPFParagraph p : document.getParagraphs())
{
List<XWPFRun> runs = p.getRuns();
if (runs != null)
{
runs.remove(piclist);
}
}
}
asked 2 mins ago
Delete pciture in .docx file
Aucun commentaire:
Enregistrer un commentaire