yesod-content-pdf 0.2.0.2 → 0.2.0.3
raw patch · 2 files changed
+6/−1 lines, 2 files
Files
- src/Yesod/Content/PDF.hs +5/−0
- yesod-content-pdf.cabal +1/−1
src/Yesod/Content/PDF.hs view
@@ -23,6 +23,7 @@ , wkMarginTop , wkZoom , wkJavascriptDelay+ , wkWindowStatus , PageSize(..) , Orientation(..) , UnitReal(..)@@ -118,6 +119,8 @@ -- ^ Zoom factor. , wkJavascriptDelay :: Maybe Int -- ^ Time to wait for Javascript to finish in milliseconds.+ , wkWindowStatus :: Maybe String+ -- ^ String to wait for window.status to be set to. } deriving (Eq, Ord, Show) instance Default WkhtmltopdfOptions where@@ -135,6 +138,7 @@ , wkMarginTop = Mm 10 , wkZoom = 1 , wkJavascriptDelay = Nothing+ , wkWindowStatus = Nothing } -- | Cf. 'wkPageSize'.@@ -176,6 +180,7 @@ , toArgs (wkOrientation opts) , maybe [] (\t -> ["--title", t ]) (wkTitle opts) , maybe [] (\d -> ["--javascript-delay", show d]) (wkJavascriptDelay opts)+ , maybe [] (\s -> ["--window-status", s ]) (wkWindowStatus opts) , "--margin-bottom" : toArgs (wkMarginBottom opts) , "--margin-left" : toArgs (wkMarginLeft opts) , "--margin-right" : toArgs (wkMarginRight opts)
yesod-content-pdf.cabal view
@@ -1,5 +1,5 @@ name: yesod-content-pdf-version: 0.2.0.2+version: 0.2.0.3 synopsis: PDF Content Type for Yesod description: Please see README.md homepage: https://github.com/alexkyllo/yesod-content-pdf#readme