yesod-content-pdf alternatives and similar packages
Based on the "yesod" category.
Alternatively, view yesod-content-pdf alternatives based on common mentions on social networks and blogs.
-
yesod-persistent
A RESTful Haskell web framework built on WAI. -
yesod-fay
Utilities for using the Fay Haskell-to-JS compiler with Yesod. -
yesod-dsl
A domain specific language and a code generator desined to create RESTful services for managing an RDBMS with Yesod web framework and Persistent. -
yesod-job-queue
Background job queue library for Yesod. -
yesod-crud
Generic administrative CRUD operations as a Yesod subsite -
yesod-auth-hashdb
Yesod.Auth.HashDB plugin, now moved out of main yesod-auth package -
yesod-routes-typescript
generate TypeScript routes for Yesod -
yesod-comments
Drop-in comments module for a Yesod application -
yesod-auth-fb
Authentication backend for Yesod using Facebook. -
yesod-text-markdown
Yesod support for Text.Markdown -
yesod-recaptcha
Dead simple support for reCAPTCHA on Yesod applications. -
yesod-goodies
Small utilities useful in any yesod web app -
yesod-worker
Drop-in(ish) background worker system for Yesod applications -
yesod-form-bootstrap4
yesod-form for bootstrap version 4 -
yesod-raml
Generate Yesod framework route definitions, documentaiton, mock-handler, and more from your RAML spec. -
yesod-transloadit
A resuable widget for the Transloadit service & Yesod -
yesod-crud-persist
Easy CRUD subsites for yesod with persistent -
yesod-auth-account-fork
Fork of yesod-auth-account with a few additions -
yesod-auth-kerberos
Kerberos support for Yesod Auth -
yesod-auth-smbclient
Authentication plugin for Yesod using smbclient -
yesod-auth-bcrypt
BCrypt salted and hashed passwords in a database as auth for yesod -
yesod-datatables
Routines for implementing server-side processing for DataTables (jQuery grid) in Haskell -
yesod-test-json
Utility functions for testing JSON web services written in Yesod -
yesod-auth-hmac-keccak
An account authentication plugin for yesod with encrypted token transfer. -
yesod-auth-ldap-native
Yesod LDAP authentication plugin using native Haskell Ldap.Client -
yesod-fb
Useful glue functions between the fb library and Yesod. -
yesod-auth-zendesk
Zendesk remote authentication support for Yesod apps. -
yesod-auth-deskcom
Desk.com Multipass support for Yesod apps. -
yesod-pnotify
yet another getMessage/setMessage using pnotify jquery plugins -
yesod-paypal-rest
Yesod plugin to use PayPal with the paypal-rest-client library. -
yesod-articles
Automatically generate article previews for a yesod site -
yesod-examples
Example programs using the Yesod Web Framework. (deprecated)
InfluxDB - Power Real-Time Data Analytics at Scale
Do you think we are missing an alternative of yesod-content-pdf or a related project?
README
Yesod.Content.PDF
Library for serving PDF content from a Yesod application.
The library calls the wkhtmltopdf
command line tool to convert HTML pages to PDF documents, therefore it requires that wkhtmltopdf
is installed and on your PATH. Tested with wkhtmltopdf versions 0.9.6 and 0.12.5.
Example Usage:
-- html2PDF now takes an instance of WkhtmltopdfOptions, and a default instance is provided.
-- html2PDF :: MonadIO m => WkhtmltopdfOptions -> Html -> m PDF
-- using a dedicated handler function for serving PDF
getItemPDFR :: ItemId -> Handler PDF
getItemPDFR itemId = do
item <- runDB $ get404 itemId
html <- defaultLayout $(widgetFile "item")
liftIO (html2PDF def html)
-- using provideRep to respond to requests with Accept "application/pdf"
getItemR :: ItemId -> Handler TypedContent
getItemR itemId = do
item <- runDB $ get404 itemId
selectRep $ do
provideRep $ defaultLayout $(widgetFile "item") -- respond with text/html
provideRep $ return $ toJSON item -- respond with application/json
provideRep $ do -- respond with application/pdf
html <- defaultLayout $(widgetFile "item")
liftIO (html2PDF def html)
Available on Hackage
Package is usable, but in early development so the API is unstable. Issues and Pull Requests welcome.