|
@@ -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
|
|
|
}
|