将LibreOffice路径提取到quartz.properties文件中

This commit is contained in:
tangfutang 2018-07-24 16:52:19 +08:00
parent 6aa50ab011
commit d4c978f941

View File

@ -27,7 +27,6 @@ public class WordToPDFUtil {
logger.info("============ת»»pdf¿ªÊ¼============");
try{
String path = QuartzPropertiesUtil.get("libreOffice_path");
// String cmd = "/opt/libreoffice5.4/program/soffice --headless -invisible --convert-to pdf "+srcPath+" --outdir "+desPath;
String cmd = path+"\\soffice --headless -invisible --convert-to pdf "+srcPath+" --outdir "+desPath;
logger.info("python:"+cmd);
process = Runtime.getRuntime().exec(cmd);