将LibreOffice路径提取到quartz.properties文件中
This commit is contained in:
parent
6aa50ab011
commit
d4c978f941
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user