mirror of https://github.com/mindoc-org/mindoc.git
pull/39/head
parent
29146f5f33
commit
d8f7801e8d
|
@ -19,14 +19,14 @@ func ConverterHtmlToPdf(uri []string,path string) (error) {
|
|||
if exe == "" {
|
||||
return errors.New("wkhtmltopdf not exist.")
|
||||
}
|
||||
params := []string{"-c",exe,"--margin-bottom","25"}
|
||||
params := []string{"--margin-bottom","25"}
|
||||
|
||||
params = append(params,uri...)
|
||||
params = append(params,path)
|
||||
|
||||
beego.Info(params)
|
||||
|
||||
cmd := exec.Command("/bin/bash",params...)
|
||||
cmd := exec.Command(exe,params...)
|
||||
|
||||
stdout, err := cmd.StdoutPipe()
|
||||
|
||||
|
|
Loading…
Reference in New Issue