修改日志输出

This commit is contained in:
chenxudong 2025-04-25 17:36:08 +08:00
parent a4aba1fdfc
commit 750d21d8f9
1 changed files with 1 additions and 1 deletions

View File

@ -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) {