yesod-content-pdf-0.1.0.1: 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

typePDF :: ContentType Source

Provide MIME type "application/pdf" as a ContentType for Yesod

uri2PDF :: URI -> IO PDF Source

Use wkhtmltopdf to render a PDF given the URI pointing to an HTML document

html2PDF :: Html -> IO PDF Source

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