Skip to content

Commit

Permalink
优化导出
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed Jan 30, 2018
1 parent b1422e8 commit fa93880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fa93880

Please sign in to comment.