-
Notifications
You must be signed in to change notification settings - Fork 35
/
README
45 lines (29 loc) · 838 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"})
%><%[email protected]()%>
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!