Skip to content

Commit

Permalink
unicode support in pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
nbartlomiej committed Apr 5, 2011
1 parent ee7d46d commit 227e71c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/handbook.rb
Expand Up @@ -25,6 +25,8 @@ def generate_pdf
:bottom_margin => 0
)

pdf.font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf"

# hack, putting in a hardcoded image; todo: fix!
pdf.image "#{Rails.public_path + '/images/front.jpg'}", :at => [0, 733], :width => 1000, :height =>733
pdf.bounding_box [50,633], :width => 900, :height => 533 do
Expand Down

0 comments on commit 227e71c

Please sign in to comment.