修复导出PDF的BUG

This commit is contained in:
Minho
2018-01-29 16:22:39 +08:00
parent 7a90148507
commit 0820397f10
3 changed files with 10 additions and 7 deletions

View File

@@ -137,19 +137,22 @@ func (this *Converter) Convert() (err error) {
case "epub":
if err = this.convertToEpub(); err != nil {
errs = append(errs, err.Error())
fmt.Println("转换EPUB文档失败" + err.Error())
}
case "mobi":
if err = this.convertToMobi(); err != nil {
errs = append(errs, err.Error())
fmt.Println("转换MOBI文档失败" + err.Error())
}
case "pdf":
if err = this.convertToPdf(); err != nil {
fmt.Println(err)
fmt.Println("转换PDF文档失败" + err.Error())
errs = append(errs, err.Error())
}
case "docx":
if err = this.convertToDocx(); err != nil {
fmt.Println(err)
fmt.Println("转换WORD文档失败" + err.Error())
errs = append(errs, err.Error())
}
}