You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Toshi MARUYAMA 0225030551 Ruby2.0: remove "warning: class variable access from toplevel" in lib/plugins/rfpdf/lib/tcpdf.rb (#13338, #13329) 11 years ago
..
lib Ruby2.0: remove "warning: class variable access from toplevel" in lib/plugins/rfpdf/lib/tcpdf.rb (#13338, #13329) 11 years ago
test Moved Rails plugins required by the core to lib/plugins. 12 years ago
CHANGELOG Moved Rails plugins required by the core to lib/plugins. 12 years ago
MIT-LICENSE Moved Rails plugins required by the core to lib/plugins. 12 years ago
README not use htmlentities gem in rfpdf plugin (#13138) 11 years ago
init.rb not use htmlentities gem in rfpdf plugin (#13138) 11 years ago
logo_example.png Moved Rails plugins required by the core to lib/plugins. 12 years ago
test_unicode.rfpdf Moved Rails plugins required by the core to lib/plugins. 12 years ago
utf8test.txt Moved Rails plugins required by the core to lib/plugins. 12 years ago

README

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!