kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
45 lines
838 B
45 lines
838 B
14 years ago
|
FWIW - I am migrating my apps to Prawn and Prawnto
|
||
|
|
||
18 years ago
|
= RFPDF Template Plugin
|
||
|
|
||
|
A template plugin allowing the inclusion of ERB-enabled RFPDF template files.
|
||
|
|
||
14 years ago
|
==
|
||
|
==
|
||
|
== TCPDF Version (The New or UTF8 Version)
|
||
|
==
|
||
|
==
|
||
|
|
||
|
If you are using HTML, it is recommended you install:
|
||
18 years ago
|
|
||
14 years ago
|
gem install -r htmlentities
|
||
18 years ago
|
|
||
14 years ago
|
TCPDF Documentation located at:
|
||
18 years ago
|
|
||
14 years ago
|
http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html
|
||
18 years ago
|
|
||
14 years ago
|
Example of simple use in .rhtml:
|
||
18 years ago
|
|
||
14 years ago
|
<%
|
||
|
@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()%>
|
||
18 years ago
|
|
||
14 years ago
|
See the following files for sample of useage:
|
||
18 years ago
|
|
||
14 years ago
|
test_unicode.rfpdf
|
||
|
utf8test.txt
|
||
|
logo_example.png
|
||
18 years ago
|
|
||
14 years ago
|
FPDF users can migrate to TCPDF by changing the following from:
|
||
|
|
||
|
pdf = FPDF.new
|
||
|
|
||
|
to:
|
||
|
|
||
|
pdf = TCPDF.new
|
||
|
|
||
|
ENJOY!
|