Mercurial > hg > soundsoftware-site
annotate lib/plugins/rfpdf/README @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | 3e4c3460b6ca |
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 TCPDF Documentation located at: |
Chris@0 | 14 |
Chris@441 | 15 http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html |
Chris@0 | 16 |
Chris@441 | 17 Example of simple use in .rhtml: |
Chris@0 | 18 |
Chris@0 | 19 <% |
Chris@441 | 20 @pdf = TCPDF.new() |
Chris@441 | 21 @pdf.SetMargins(15, 27, 15); |
Chris@441 | 22 @pdf.AddPage(); |
Chris@441 | 23 text_options = {:font => "freeserif"} |
Chris@441 | 24 @pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"}) |
Chris@441 | 25 %><%=@pdf.Output()%> |
Chris@0 | 26 |
Chris@441 | 27 See the following files for sample of useage: |
Chris@0 | 28 |
Chris@441 | 29 test_unicode.rfpdf |
Chris@441 | 30 utf8test.txt |
Chris@441 | 31 logo_example.png |
Chris@0 | 32 |
Chris@441 | 33 FPDF users can migrate to TCPDF by changing the following from: |
Chris@0 | 34 |
Chris@441 | 35 pdf = FPDF.new |
Chris@0 | 36 |
Chris@441 | 37 to: |
Chris@0 | 38 |
Chris@441 | 39 pdf = TCPDF.new |
Chris@0 | 40 |
Chris@1294 | 41 ENJOY! |