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