Press renders HTML and CSS directly into PDF documents using only modules that ship with Erlang/OTP (such as :zlib) — no headless Chrome, no wkhtmltopdf, and no external binaries.
Designed for structured business documents like invoices, delivery notes, payslips, and reports, with support for embedded PNG and JPEG images.
Installation
def deps do
[
{:press, "~> 0.1"}
]
end
Usage
{:ok, pdf_binary} = Press.render(html)
File.write!("document.pdf", pdf_binary)