优化导出

This commit is contained in:
Minho 2018-01-30 14:22:39 +08:00
parent b1422e889a
commit fa9388056c

View File

@ -476,12 +476,12 @@ func (this *Converter) convertToPdf() (err error) {
//header template //header template
if len(this.Config.Header) > 0 { if len(this.Config.Header) > 0 {
args = append(args, "--pdf-header-template", GetFooterOrHeaderParams(this.Config.Header)) args = append(args, "--pdf-header-template", this.Config.Header)
} }
//footer template //footer template
if len(this.Config.Footer) > 0 { if len(this.Config.Footer) > 0 {
args = append(args, "--pdf-footer-template",GetFooterOrHeaderParams(this.Config.Footer)) args = append(args, "--pdf-footer-template",this.Config.Footer)
} }
if len(this.Config.MarginLeft) > 0 { if len(this.Config.MarginLeft) > 0 {