Mercurial > hg > soundsoftware-site
comparison .svn/pristine/ac/acc250b05e43c21173623b65f651d52d843f6f14.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1295:622f24f53b42 |
---|---|
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 TCPDF Documentation located at: | |
14 | |
15 http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html | |
16 | |
17 Example of simple use in .rhtml: | |
18 | |
19 <% | |
20 @pdf = TCPDF.new() | |
21 @pdf.SetMargins(15, 27, 15); | |
22 @pdf.AddPage(); | |
23 text_options = {:font => "freeserif"} | |
24 @pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"}) | |
25 %><%=@pdf.Output()%> | |
26 | |
27 See the following files for sample of useage: | |
28 | |
29 test_unicode.rfpdf | |
30 utf8test.txt | |
31 logo_example.png | |
32 | |
33 FPDF users can migrate to TCPDF by changing the following from: | |
34 | |
35 pdf = FPDF.new | |
36 | |
37 to: | |
38 | |
39 pdf = TCPDF.new | |
40 | |
41 ENJOY! |