mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
优化导出
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user