word域代码转换html丢失解决办法.docxVIP

  • 59
  • 0
  • 约1.24万字
  • 约 13页
  • 2020-10-16 发布于天津
  • 举报
Word转html存在域代码丢失。 Aspose , jacob , poi 者E无法解决 在使用jocob转换成 html时域代码会被!--[if supportFields]! 包裹 可以统一提取出来转换成 latex ,latex转换成图片,解决 word域代码丢失问题 —end if]-- private void processFormula(ListNode no des ) throws Un supportedE ncod in gExcepti on{ for (int i = no des .size()-1; i =0; i --){ Node node = no des .get( i ); if ( node instanceof Element){ Element e = (Element) node ; processFormula( e.childNodes()); } else if ( node instanceof Comment){ String commentText = node .toString(); if ( commentText .contains( !--[if supportFields] Comment comment = (Comment) node ; Stri ng latex = EqFormulaLatexUti

文档评论(0)

1亿VIP精品文档

相关文档