The missing PDF library for Elixir.
Pdf.build([size: :a4, compress: true], fn pdf ->
pdf
|> Pdf.set_info(title: "Demo PDF")
|> Pdf.set_font("Helvetica", 10)
|> Pdf.text_at({200,200}, "Welcome to Pdf")
|> Pdf.write_to("test.pdf")
end)Add :pdf to your list of dependencies in mix.exs:
def deps do
[
{:pdf, "~> 0.6"},
]
endCopyright (c) 2016 Andrew Timberlake
This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the LICENSE.md file for more details.