比如一个word文档有20页,需要转成20张图片,每一页对应一张图片。百度谷歌了下,openoffice等工具不太适合用在linux上,aspose是收费的,有没有开源的比较支持比较好的。
public class CreateWordDemo
{
public void createDocContext(String file)
throws DocumentException,IOException {
//
设置纸张大小
Document document = new
Document(PageSize.A4);
//
建立一个书写器(Writer)与document对象关联,通过书写器(Writer)可以将文档写入到磁盘中
RtfWriter2.getInstance(document, new ...