redmine/vendor/plugins/rfpdf/README
Toshi MARUYAMA 22e8d9b949 PDF: update rfpdf (#61).
https://github.com/edwinmoss/rfpdf
revision a04724b4af95c15a99675b34e353c15534d20411

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5247 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-30 03:23:54 +00:00

45 lines
838 B
Plaintext

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)
==
==
If you are using HTML, it is recommended you install:
gem install -r htmlentities
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!