I’ve choosed RFPDF because of the richest feature set.
The others like ActivePDF or RailsPDF or ruby’s PDF Writer are very nice but with less functionality. RFPDF knows to write HTML to PDF, so when generating a report in HTML I can have a PDF version too.
The install doc is outdated, follow this forum link for more details. Even this install guide is outdated, there you are with my install steps:
I’ve choosed RFPDF because of the richest feature set.
The others like ActivePDF or RailsPDF or ruby’s PDF Writer are very nice but with less functionality. RFPDF knows TCPDF therefore to write HTML to PDF, so when generating a report in HTML I can have a PDF version too.
The install doc is outdated, follow this forum link for more details. Even this install guide is outdated, there you are with my install steps:
1 2 | script/plugin install http://rfpdf.googlecode.com/svn/trunk |
The examples are not working due to various errors or missing fonts. I’ve created this example and all was fine:
1 2 3 4 5 6 7 8 9 10 | <% pdf = TCPDF.new() pdf.SetMargins(15, 27, 15); pdf.AddPage(); pdf.draw_text(15, 10, @company_name) pdf.write_html("<br/><table border=\"1\"><tr><td>test</td><td>alika</td></tr></table><br/>", true, 0) pdf.draw_box(20, 20, 20, 20) pdf.draw_title(1, 1, "Title") %>;<%= pdf.Output("test.pdf") %>; |


