foodsoft/vendor/plugins/rfpdf
Benjamin Meichsner 5b9a7e05df Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
..
lib Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
test Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
.gitignore Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
CHANGELOG Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
MIT-LICENSE Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
README Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
environment.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
init.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
install.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
logo_example.png Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
test_unicode.rfpdf Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
utf8test.txt Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00

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!