public
Description: Ruby on Rails TCPDF plugin
Homepage: http://www.4ssom.com
Clone URL: git://github.com/edwinmoss/rfpdf.git
rfpdf /
name age message
file .gitignore Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file CHANGELOG Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file MIT-LICENSE Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file README Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file environment.rb Wed Jul 02 10:51:12 -0700 2008 Now Rails 2.x capable. [Edwin Moss]
file init.rb Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file install.rb Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
directory lib/ Tue Aug 05 09:01:51 -0700 2008 Escape sequence is now working with correct rub... [bmoss]
file logo_example.png Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
directory test/ Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file test_unicode.rfpdf Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
file utf8test.txt Fri Jun 06 21:04:42 -0700 2008 Initial commit [Edwin Moss]
README
= RFPDF Template Plugin

A template plugin allowing the inclusion of ERB-enabled RFPDF template files.

==
==
== TCPDF Version (The New or UTF8 Version)
==
==

If you are using HTML, it is recommended you install:

gem install -r htmlentities

TCPDF Documentation located at:

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

Example of simple use in .rhtml:

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

See the following files for sample of useage:

test_unicode.rfpdf
utf8test.txt
logo_example.png

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

  pdf = FPDF.new

to:

  pdf = TCPDF.new

ENJOY!