Spire.Doc for Java 5.2.3已发布。该版本支持在段落中查找所有匹配的字符串,并增强了Word到PDF以及HTML到Word的转换功能。此外还修复了加载Word文件时程序抛出“Operation is not valid due to the current state of the object”等已知问题。详情请阅读以下内容: 新功能: 支持在段落中查找所有匹配的字符串。 Document document = new Document(); document.loadFromFile("Sample.docx"); Section s = document.getSections().get(0); Paragraph para = s.getParagraphs().get(0); //第一种方式 TextSelection[] textSelections = para.findAllString("The",…