yesod-content-pdf-0.1.0.0: PDF Content Type for Yesod

Safe HaskellNone
LanguageHaskell2010

Yesod.Content.PDF

Description

Utilities for serving PDF from Yesod Uses and depends on command line utility wkhtmltopdf to render PDF from HTML

Synopsis

Documentation

url2PDF :: String -> IO PDF Source

Use wkhtmltopdf to render a PDF given the URL to an HTML document

html2PDF :: Html -> IO PDF Source

Use wkhtmltopdf to render a PDF from an HTML (Text.Blaze.Html) type