mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-11-24 08:47:04 +08:00
修改Linux下生成pdf的BUG
This commit is contained in:
@@ -19,7 +19,7 @@ func ConverterHtmlToPdf(uri []string,path string) (error) {
|
||||
if exe == "" {
|
||||
return errors.New("wkhtmltopdf not exist.")
|
||||
}
|
||||
params := []string{"/C",exe,"--margin-bottom","25"}
|
||||
params := []string{"-c",exe,"--margin-bottom","25"}
|
||||
|
||||
params = append(params,uri...)
|
||||
params = append(params,path)
|
||||
|
||||
Reference in New Issue
Block a user