Skip to content

An attempt to get a nice API for PDF generation in Elixir

Notifications You must be signed in to change notification settings

WernerBuchert/elixir-pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pdf

Build Status

The missing PDF library for Elixir.

Usage

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)

Installation

Add pdf to your list of dependencies in mix.exs:

def deps do
  [{:pdf, "~> 0.3"}]
end

About

An attempt to get a nice API for PDF generation in Elixir

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 99.5%
  • HTML 0.5%