aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-01-21 11:18:44 -0700
committerGitHub <noreply@github.com>2018-01-21 11:18:44 -0700
commite9aadc1cfaaa6c6e20e5b7179f1291ba1c21f0ea (patch)
tree08628042cf2847260620b25c46aa68f0d2e24c07 /src/Text/Pandoc
parent4423f81079db93a0d229dc6c9715a3e851f4b789 (diff)
parent6b40b8c27c71231607e64221a071d3a2d366dce3 (diff)
downloadpandoc-e9aadc1cfaaa6c6e20e5b7179f1291ba1c21f0ea.tar.gz
Merge pull request #4237 from sitewisely/header_and_footer
Add header and footer parameters for wkhtmltopdf
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/PDF.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs
index 974934763..5f41d6c55 100644
--- a/src/Text/Pandoc/PDF.hs
+++ b/src/Text/Pandoc/PDF.hs
@@ -104,6 +104,10 @@ makePDF "wkhtmltopdf" pdfargs writer opts doc@(Pandoc meta _) = do
(getField "margin-right" meta'))
,("margin-left", fromMaybe (Just "1.25in")
(getField "margin-left" meta'))
+ ,("footer-html", fromMaybe Nothing
+ (getField "footer-html" meta'))
+ ,("header-html", fromMaybe Nothing
+ (getField "header-html" meta'))
]
source <- writer opts doc
verbosity <- getVerbosity