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