Ver Fonte

fix:生成pdf的bug修复

Roc há 3 anos atrás
pai
commit
a453a5dee9
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      services/word.go

+ 2 - 2
services/word.go

@@ -1831,7 +1831,7 @@ func FuncDocs2Pdf(command string, fileSrcPath string, fileOutDir string, convert
 	//convert
 	cmd := exec.Command(command, "--invisible", "--convert-to", converterType,
 		fileSrcPath, "--outdir", fileOutDir)
-	_, errByCmdStart := cmd.Output()
+	byteByStat, errByCmdStart := cmd.Output()
 	//命令调用转换失败
 	if errByCmdStart != nil {
 		return "", errByCmdStart
@@ -1843,6 +1843,6 @@ func FuncDocs2Pdf(command string, fileSrcPath string, fileOutDir string, convert
 	} else {
 		fileOutPath += ".pdf"
 	}
-	//fmt.Println("文件转换成功...", string(byteByStat))
+	fmt.Println("文件转换成功...", string(byteByStat))
 	return fileOutPath, nil
 }