Chris@909: FWIW - I am migrating my apps to Prawn and Prawnto Chris@909: Chris@909: = RFPDF Template Plugin Chris@909: Chris@909: A template plugin allowing the inclusion of ERB-enabled RFPDF template files. Chris@909: Chris@909: == Chris@909: == Chris@909: == TCPDF Version (The New or UTF8 Version) Chris@909: == Chris@909: == Chris@909: Chris@909: If you are using HTML, it is recommended you install: Chris@909: Chris@909: gem install -r htmlentities Chris@909: Chris@909: TCPDF Documentation located at: Chris@909: Chris@909: http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html Chris@909: Chris@909: Example of simple use in .rhtml: Chris@909: Chris@909: <% Chris@909: @pdf = TCPDF.new() Chris@909: @pdf.SetMargins(15, 27, 15); Chris@909: @pdf.AddPage(); Chris@909: text_options = {:font => "freeserif"} Chris@909: @pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"}) Chris@909: %><%=@pdf.Output()%> Chris@909: Chris@909: See the following files for sample of useage: Chris@909: Chris@909: test_unicode.rfpdf Chris@909: utf8test.txt Chris@909: logo_example.png Chris@909: Chris@909: FPDF users can migrate to TCPDF by changing the following from: Chris@909: Chris@909: pdf = FPDF.new Chris@909: Chris@909: to: Chris@909: Chris@909: pdf = TCPDF.new Chris@909: Chris@909: ENJOY!