annotate .svn/pristine/ac/acc250b05e43c21173623b65f651d52d843f6f14.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 FWIW - I am migrating my apps to Prawn and Prawnto
Chris@1295 2
Chris@1295 3 = RFPDF Template Plugin
Chris@1295 4
Chris@1295 5 A template plugin allowing the inclusion of ERB-enabled RFPDF template files.
Chris@1295 6
Chris@1295 7 ==
Chris@1295 8 ==
Chris@1295 9 == TCPDF Version (The New or UTF8 Version)
Chris@1295 10 ==
Chris@1295 11 ==
Chris@1295 12
Chris@1295 13 TCPDF Documentation located at:
Chris@1295 14
Chris@1295 15 http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html
Chris@1295 16
Chris@1295 17 Example of simple use in .rhtml:
Chris@1295 18
Chris@1295 19 <%
Chris@1295 20 @pdf = TCPDF.new()
Chris@1295 21 @pdf.SetMargins(15, 27, 15);
Chris@1295 22 @pdf.AddPage();
Chris@1295 23 text_options = {:font => "freeserif"}
Chris@1295 24 @pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"})
Chris@1295 25 %><%=@pdf.Output()%>
Chris@1295 26
Chris@1295 27 See the following files for sample of useage:
Chris@1295 28
Chris@1295 29 test_unicode.rfpdf
Chris@1295 30 utf8test.txt
Chris@1295 31 logo_example.png
Chris@1295 32
Chris@1295 33 FPDF users can migrate to TCPDF by changing the following from:
Chris@1295 34
Chris@1295 35 pdf = FPDF.new
Chris@1295 36
Chris@1295 37 to:
Chris@1295 38
Chris@1295 39 pdf = TCPDF.new
Chris@1295 40
Chris@1295 41 ENJOY!