To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / ac / acc250b05e43c21173623b65f651d52d843f6f14.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (755 Bytes)

1 1296:038ba2d95de8 Chris
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!