summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fromhtml.cabal6
-rwxr-xr-xsrc/Text/FromHTML.hs8
2 files changed, 10 insertions, 4 deletions
diff --git a/fromhtml.cabal b/fromhtml.cabal
index dc6afb7..c6947fa 100644
--- a/fromhtml.cabal
+++ b/fromhtml.cabal
@@ -1,13 +1,13 @@
-cabal-version: 1.12
+cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.31.2.
--
-- see: https://github.com/sol/hpack
--
--- hash: 8bab40642781a60f3d71a513789692466ac753726db91595bdc3a5af39472bb4
+-- hash: 4a37549d810ae62f15b36b830a4ae1fb1e2cba63df0c9a5108bb7fc27b7efca9
name: fromhtml
-version: 1.0.2
+version: 1.0.3
synopsis: Simple adapter for transformation of HTML to other formats
description: Please see the README on GitHub at <https://github.com/MarekSuchanek/FromHTML#readme>
category: Text
diff --git a/src/Text/FromHTML.hs b/src/Text/FromHTML.hs
index 1cfe29a..4caa6e2 100755
--- a/src/Text/FromHTML.hs
+++ b/src/Text/FromHTML.hs
@@ -57,7 +57,13 @@ fromHTML extp html = pandoc extp (str2BS html)
-- | Simple conversion of HTML to PDF using process wkhtmltopdf
wkhtmltopdf :: Command
-wkhtmltopdf = perform "wkhtmltopdf" ["--quiet", "--disable-smart-shrinking", "--encoding", "utf-8", "-", "-"]
+wkhtmltopdf = perform "wkhtmltopdf" ["--quiet", "--disable-smart-shrinking",
+ "--footer-center", "\"[page]\"",
+ "--footer-font-name", "\"Noto Serif\"",
+ "--footer-spacing", "10",
+ "--footer-font-size", "10",
+ "-B", "25mm", "-L", "25mm", "-R", "25mm", "-T", "25mm",
+ "--encoding", "utf-8", "-", "-"]
-- | Simple conversion of HTML to some format using process pandoc
pandoc :: ExportType -> Command