金山的WPS就可以啊,读取编辑都行
word有微软的专用格式,如果要读取其内容,可以使用jar包,如下:1。用jacob/down_view/down_view.cn * @author chris * @version 1.0,who use this example pls remain the declare */ public class PdfExtractor { public PdfExtractor() { } public static void main(String args[]) throws Exception { FileInputStream in = new FileInputStream ("c:\\a.doc"); WordExtractor extractor = new WordExtractor(); String str = extractor.extractText(in); System.out.println("the result length is"+str.length()); System.out.println("the result is"+str); } }
用wps打开