Rendro.Adapters.Phoenix (Rendro v0.3.0)

Copy Markdown View Source

Phoenix integration for Rendro.

This module provides helpers for serving PDFs in Phoenix controllers. It requires :phoenix and :plug to be available.

Summary

Functions

Renders a PDF and sends it for inline preview.

Renders a PDF and sends it as a download.

Functions

preview_pdf(conn, doc)

Renders a PDF and sends it for inline preview.

render_pdf(conn, doc, filename \\ "document.pdf")

Renders a PDF and sends it as a download.