diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-06-22 16:33:20 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-06-22 16:33:20 -0700 |
commit | 76fc51f2bae6c5c1a0d5abf60d84d24a3a603ebc (patch) | |
tree | 1d7c9edf128de426a724ca52385833b5282e040c /src | |
parent | 064303e2c99636437355295ba16b3ea154bf9d3e (diff) | |
download | pandoc-76fc51f2bae6c5c1a0d5abf60d84d24a3a603ebc.tar.gz |
Use --enable-local-file-access in invoking wkhtmltopdf.
wkhtmltopdf changed in recent versions to require this for
access to local files.
This fixes PDF via HTML5 with `--css`.
Closes #6474.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/PDF.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 02894aa0d..7dc0b1671 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -153,7 +153,8 @@ makeWithWkhtmltopdf program pdfargs writer opts doc@(Pandoc meta _) = do (getField "margin-left" meta')) ,("footer-html", getField "footer-html" meta') ,("header-html", getField "header-html" meta') - ] ++ pdfargs + ] ++ ("--enable-local-file-access" : pdfargs) + -- see #6474 source <- writer opts doc verbosity <- getVerbosity liftIO $ html2pdf verbosity program args source |