修改日志输出
This commit is contained in:
parent
a4aba1fdfc
commit
750d21d8f9
|
|
@ -105,7 +105,7 @@ public class OfficeFileUtil {
|
||||||
try {
|
try {
|
||||||
StringBuilder command = new StringBuilder();
|
StringBuilder command = new StringBuilder();
|
||||||
command.append("unoconv -f pdf -o").append(" ").append(pdfPath).append(" ").append(pptPath);
|
command.append("unoconv -f pdf -o").append(" ").append(pdfPath).append(" ").append(pptPath);
|
||||||
log.info("convert word file to pdf, command: {}", command);
|
log.info("convert ppt file to pdf, command: {}", command);
|
||||||
Process process = RuntimeUtil.exec(command.toString());
|
Process process = RuntimeUtil.exec(command.toString());
|
||||||
process.waitFor();
|
process.waitFor();
|
||||||
if (process.exitValue() != 0) {
|
if (process.exitValue() != 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue