Remove XWPFHyperlinkRun Apache POI

元气小坏坏 提交于 2019-12-24 15:45:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!