diff --git a/converter/converter.go b/converter/converter.go index e68c6ff4c..93df4cad8 100644 --- a/converter/converter.go +++ b/converter/converter.go @@ -476,12 +476,12 @@ func (this *Converter) convertToPdf() (err error) { //header template 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 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 {