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 / 4d / 4d81cc5316e201f2bbb721032960a2f74380fe9b.svn-base @ 1298:4f746d8966dd

History | View | Annotate | Download (838 Bytes)

1
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
If you are using HTML, it is recommended you install:
14

    
15
gem install -r htmlentities
16

    
17
TCPDF Documentation located at:
18

    
19
http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html
20

    
21
Example of simple use in .rhtml:
22

    
23
<%
24
	@pdf = TCPDF.new()
25
  @pdf.SetMargins(15, 27, 15);
26
  @pdf.AddPage();
27
  text_options = {:font => "freeserif"}
28
  @pdf.draw_text(15, 10, "text", {:font_size => 12, :font => "freeserif"})
29
%><%=@pdf.Output()%>
30

    
31
See the following files for sample of useage:
32

    
33
test_unicode.rfpdf
34
utf8test.txt
35
logo_example.png
36

    
37
FPDF users can migrate to TCPDF by changing the following from:
38

    
39
  pdf = FPDF.new
40

    
41
to:
42

    
43
  pdf = TCPDF.new
44

    
45
ENJOY!