Skip to content

Instantly share code, notes, and snippets.

@srih4ri
Created February 22, 2011 18:48
Show Gist options
  • Save srih4ri/839142 to your computer and use it in GitHub Desktop.
Save srih4ri/839142 to your computer and use it in GitHub Desktop.
Generate PDF documents containing malayalam using prawn
require 'rubygems'
gem 'prawn','=0.6.3'
require 'prawn'
words = "പോടാ മണ്ട is the new foo bar."
Prawn::Document.generate "example.pdf" do |pdf|
pdf.font 'rachana.ttf'
pdf.text words
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment