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