Commit 03f00fa6 authored by luzhuang's avatar luzhuang

StreamOpenOfficeDocumentConverter

parent 4b512164
...@@ -7,6 +7,7 @@ import com.artofsolving.jodconverter.DocumentFormatRegistry; ...@@ -7,6 +7,7 @@ import com.artofsolving.jodconverter.DocumentFormatRegistry;
import com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection; import com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection;
import com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection; import com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection;
import com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter; import com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter;
import com.artofsolving.jodconverter.openoffice.converter.StreamOpenOfficeDocumentConverter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.time.DateFormatUtils; import org.apache.commons.lang3.time.DateFormatUtils;
import org.rcisoft.common.component.Global; import org.rcisoft.common.component.Global;
...@@ -105,7 +106,7 @@ public class OfficeToPdf { ...@@ -105,7 +106,7 @@ public class OfficeToPdf {
public static DocumentConverter getConverter(){ public static DocumentConverter getConverter(){
if(null == converter){ if(null == converter){
LogUtil.fileChangeLog("****************converter + begin***********" + DateFormatUtils.format(new Date(), "HH:mm:ss")); LogUtil.fileChangeLog("****************converter + begin***********" + DateFormatUtils.format(new Date(), "HH:mm:ss"));
converter = new OpenOfficeDocumentConverter(connection); converter = new StreamOpenOfficeDocumentConverter(connection);
LogUtil.fileChangeLog("****************converter + end***********" + DateFormatUtils.format(new Date(), "HH:mm:ss")); LogUtil.fileChangeLog("****************converter + end***********" + DateFormatUtils.format(new Date(), "HH:mm:ss"));
} }
return converter; return converter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment