summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarekSuchanek <>2020-01-14 08:15:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2020-01-14 08:15:00 (GMT)
commit8176678d5460ba7578af4beecb4f1e3b1f7d61c7 (patch)
tree2573118a67e02e5ebcc1c6faee1ad990cfd7223b
parent4ad44c90f9b26f0141509509e9d8d8f6fae42588 (diff)
version 1.0.31.0.3
-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