摘要: word导出用的docx4j public static void exportWordImg(String wordpath,List<String> contentlist,String[] imglist) throws Exception{ exportQuestionWord t=new 阅读全文
posted @ 2017-11-06 14:30 Dlimeng 阅读(12) 评论(0) 推荐(0)
摘要: poi导入word纯文本 public List exportWord(List<Question> list,String filePath){ List<String> newlist = new ArrayList<>();// XWPFDocument document= new XWPFD 阅读全文
posted @ 2017-11-06 11:17 Dlimeng 阅读(10) 评论(0) 推荐(0)
摘要: word导入的时候,如果有图片,poi图片可以抓出,但是不能定位位置,目前没有想到好的解决方案。 word导出,纯文本用的是poi,图文的文档用docx4j。 还有FreeMarker,用xml/ftl里面封装要导出格式的文档,设置key,最后通过map封装,导出word,我是用mac开发的,有一些 阅读全文
posted @ 2017-11-06 11:06 Dlimeng 阅读(10) 评论(0) 推荐(0)
摘要: word纯文本导入,我用的是poi //其中的实体,可以不用看,只看两种word(doc,docx)数据封装就可以 public static List<Question> parseWord(String in) throws Exception{ List<String> list=new Ar 阅读全文
posted @ 2017-11-06 10:47 Dlimeng 阅读(8) 评论(0) 推荐(0)