yesod-content-pdf-0.1.0.0: PDF Content Type for Yesod
Yesod.Content.PDF
Description
Utilities for serving PDF from Yesod Uses and depends on command line utility wkhtmltopdf to render PDF from HTML
Synopsis
type PDF = ByteString Source
typePDF :: ContentType Source
url2PDF :: String -> IO PDF Source
Use wkhtmltopdf to render a PDF given the URL to an HTML document
url2PDF' :: String -> FilePath -> Handle -> IO PDF Source
html2PDF :: Html -> IO PDF Source
Use wkhtmltopdf to render a PDF from an HTML (Text.Blaze.Html) type
html2PDF' :: Html -> FilePath -> Handle -> IO PDF Source