问题
I have the same problem as this partner: how to remove a XWPFHyperlinkRun by poi
I can't convert my .doc to .pdf because of that XWPFHyperlinkRun element.
I can remove a simply run paragraph like this:
for (XWPFParagraph xwpfParagraph : paragraphs) {
for (int i = 0; i < xwpfParagraph.getRuns().size(); i++)
{
xwpfParagraph.removeRun(i);
}
}
but hypertextlink don't......
If someone had a solution i will be really grateful.
Thanks, regards.
来源:https://stackoverflow.com/questions/35075174/remove-xwpfhyperlinkrun-apache-poi