Redmine/lib/plugins/rfpdf
Toshi MARUYAMA 4100d3beeb Merged r11527 from trunk to 2.3-stable (#13338, #13329)
Ruby2.0: remove "warning: class variable access from toplevel" in lib/plugins/rfpdf/lib/tcpdf.rb.

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11533 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-03 12:10:48 +00:00
..
lib Merged r11527 from trunk to 2.3-stable (#13338, #13329) 2013-03-03 12:10:48 +00:00
test Moved Rails plugins required by the core to lib/plugins. 2012-04-26 17:23:24 +00:00
CHANGELOG Moved Rails plugins required by the core to lib/plugins. 2012-04-26 17:23:24 +00:00
MIT-LICENSE Moved Rails plugins required by the core to lib/plugins. 2012-04-26 17:23:24 +00:00
README not use htmlentities gem in rfpdf plugin (#13138) 2013-02-15 13:24:10 +00:00
init.rb not use htmlentities gem in rfpdf plugin (#13138) 2013-02-15 13:24:10 +00:00
logo_example.png Moved Rails plugins required by the core to lib/plugins. 2012-04-26 17:23:24 +00:00
test_unicode.rfpdf Moved Rails plugins required by the core to lib/plugins. 2012-04-26 17:23:24 +00:00
utf8test.txt Moved Rails plugins required by the core to lib/plugins. 2012-04-26 17:23:24 +00:00

README

FWIW - I am migrating my apps to Prawn and Prawnto

= RFPDF Template Plugin

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

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

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!