mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
优化导出
This commit is contained in:
parent
b1422e889a
commit
fa9388056c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user