我现在用的是openoffice 3.5,使用jodconverter来将文档转成pdf,我发现MS Office 2003格式的都可以转,但是 MS Office2007格式的都转不了,比如我转xlsx格式的文件时,报unknown document format for file,我的代码如下:OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);
connection.connect();
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(doc, pdf);是OpenOffice本身就不支持,还是我哪些地方写错了?
connection.connect();
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(doc, pdf);是OpenOffice本身就不支持,还是我哪些地方写错了?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货