comparison .svn/pristine/4d/4d81cc5316e201f2bbb721032960a2f74380fe9b.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 FWIW - I am migrating my apps to Prawn and Prawnto
2
3 = RFPDF Template Plugin
4
5 A template plugin allowing the inclusion of ERB-enabled RFPDF template files.
6
7 ==
8 ==
9 == TCPDF Version (The New or UTF8 Version)
10 ==
11 ==
12
13 If you are using HTML, it is recommended you install:
14
15 gem install -r htmlentities
16
17 TCPDF Documentation located at:
18
19 http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html
20
21 Example of simple use in .rhtml:
22
23 <%
24 @pdf = TCPDF.new()
25 @pdf.SetMargins(15, 27, 15);
26 @pdf.AddPage();
27 text_options = {:font => "freeserif"}
28 @pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"})
29 %><%=@pdf.Output()%>
30
31 See the following files for sample of useage:
32
33 test_unicode.rfpdf
34 utf8test.txt
35 logo_example.png
36
37 FPDF users can migrate to TCPDF by changing the following from:
38
39 pdf = FPDF.new
40
41 to:
42
43 pdf = TCPDF.new
44
45 ENJOY!