Redmine/vendor/plugins/rfpdf
Toshi MARUYAMA cb37643ea9 Merge r9312 from trunk
pdf: fix tcpdf automatic line break bug (#10554)

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9322 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-04 12:23:13 +00:00
..
lib Merge r9312 from trunk 2012-04-04 12:23:13 +00:00
test trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
CHANGELOG PDF: update rfpdf (#61). 2011-03-30 03:23:54 +00:00
MIT-LICENSE trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
README PDF: update rfpdf (#61). 2011-03-30 03:23:54 +00:00
init.rb PDF: comment out Mime pdf in vendor/plugins/rfpdf/init.rb (#61). 2011-03-30 05:46:58 +00:00
logo_example.png PDF: update rfpdf (#61). 2011-03-30 03:23:54 +00:00
test_unicode.rfpdf PDF: update rfpdf (#61). 2011-03-30 03:23:54 +00:00
utf8test.txt PDF: update rfpdf (#61). 2011-03-30 03:23:54 +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)
==
==

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!