##// END OF EJS Templates
Merged r12138, r12149, r12156 and r12157 from trunk to 2.3-stable (#14931)...
Merged r12138, r12149, r12156 and r12157 from trunk to 2.3-stable (#14931) scm: fix annotate error with non ASCII author on Ruby 1.9 and Ruby 2.0. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@12160 e93f8b46-1217-0410-a6f0-8f06a7374b81
Toshi MARUYAMA -
r11930:0a25ee385f5e
Show More
Name Size Modified Last Commit Author
/ lib / plugins / rfpdf
lib
test
CHANGELOG Loading ...
MIT-LICENSE Loading ...
README Loading ...
init.rb Loading ...
logo_example.png Loading ...
test_unicode.rfpdf Loading ...
utf8test.txt Loading ...

FWIW - I am migrating my apps to Prawn and Prawnto

= RFPDF Template Plugin

A template plugin allowing the inclusion of ERB-enabled RFPDF template files.

==
==
== TCPDF Version (The New or UTF8 Version)
==
==

TCPDF Documentation located at:

http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html

Example of simple use in .rhtml:

<%
@pdf = TCPDF.new()
@pdf.SetMargins(15, 27, 15);
@pdf.AddPage();
text_options = {:font => "freeserif"}
@pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"})
%><%=@pdf.Output()%>

See the following files for sample of useage:

test_unicode.rfpdf
utf8test.txt
logo_example.png

FPDF users can migrate to TCPDF by changing the following from:

pdf = FPDF.new

to:

pdf = TCPDF.new

ENJOY!