Packages

Super simple library for turning raw HTML or webpages into beautiful PDFs.

Current section

Files

Jump to
html_to_pdf lib html_to_pdf.ex
Raw

lib/html_to_pdf.ex

defmodule HtmlToPdf do
def set_html(document, html) do
%{document | html: html}
end
def set_dpi(document, dpi) do
document
|> HtmlToPdf.Document.put_option("--dpi", dpi |> Integer.to_string)
end
end