annotate vendor/plugins/rfpdf/.svn/text-base/README.svn-base @ 507:0c939c159af4 redmine-1.2

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