Ruby FPDF is a Ruby port of PHP version FPDF

简介:

What is Ruby FPDF?

Ruby FPDF is a Ruby port of Olivier Plathey's excellent PDF generator, FPDF. FPDF is written in PHP, and as such can only be used from PHP scripts. Ruby FPDF, as the name suggests, is written in Ruby and can be used from Ruby scripts.

Ruby FPDF was ported and is maintained by Brian Ollenberger. If you need to contact me, see the contact link above.

Documentation

At this time, I have not written any documentation for Ruby FPDF, since the behaviour is almost identical to that of FPDF 1.53. The primary difference is in how the final PDF file is extracted. In Ruby there is no need to send a PDF to a web browser like there is with the PHP version. The basic usage should be made clear in the examples.

There are now three extensions that come with Ruby FPDF. There is a bookmark support module, an EPS image module, and a Chinese language support module. All are based on similar modules for the PHP FPDF library and all are direct ports. Please see the examples and the header comments in the source for these modules for their usage.

Contributions

Kim Shrier has contributed bug fixes, examples, external fonts support, JPEG support, and an upgrade to FPDF version 1.53.

Sylvain Lafleur contributed the initial port of the bookmark module.

Thiago Jackiw contributed the EPS module, which is ported from the PHP module by Valentin Schmidt.

Thanks also to the others who have contributed bug reports and fixes.

Download Ruby FPDF

You can download Ruby FPDF below. It is released under a permissive license, similar to that of FPDF. I only ask that you retain the copyright notice at the top of the source file. You may make modifications to FPDF, but if you redistribute those modifications, make it clear in a comment immediately before or after the copyright notice that you have modified it. I also wouldn't mind if you sent patches back to me, but you are not strictly required to do so.

My version numbering system is as follows. The version number is the same as the corresponding equivalent version of FPDF. I append a letter to distinguish subsequent releases of Ruby FPDF within one version of FPDF, in case that is necessary.

  • Ruby FPDF 1.53d - Released July 19, 2006. This release comes with more bug fixes and a new port of EPS support by Thiago Jackiw. Many thanks to everybody who has contributed feedback and bug fixes.


From http://zeropluszero.com/software/fpdf/

 

 

本文转自RubyPdf 的中文博客博客园博客,原文链接:http://www.cnblogs.com/hardrock/archive/2006/07/21/456595.html,如需转载请自行联系原作者

相关文章
|
程序员 PHP Ruby
【评论】为什么PHP比Ruby更加实用?
导读:作者Bastien用风趣的口吻写了一篇文章《Why PHP is (so much) better than Ruby?》,作者实际并不是认为PHP比Ruby好,只是用不同的方式表现出Ruby的薄弱之处。
956 0
|
3月前
|
安全 关系型数据库 MySQL
PHP与MySQL交互:从入门到实践
【9月更文挑战第20天】在数字时代的浪潮中,掌握PHP与MySQL的互动成为了开发动态网站和应用程序的关键。本文将通过简明的语言和实例,引导你理解PHP如何与MySQL数据库进行对话,开启你的编程之旅。我们将从连接数据库开始,逐步深入到执行查询、处理结果,以及应对常见的挑战。无论你是初学者还是希望提升技能的开发者,这篇文章都将为你提供实用的知识和技巧。让我们一起探索PHP与MySQL交互的世界,解锁数据的力量!
|
3月前
|
NoSQL 关系型数据库 MySQL
不是 PHP 不行了,而是 MySQL 数据库扛不住啊
【9月更文挑战第8天】这段内容讨论了MySQL在某些场景下面临的挑战及其原因,并指出这些问题不能完全归咎于MySQL本身。高并发读写压力、数据量增长以及复杂查询和事务处理都可能导致性能瓶颈。然而,应用程序设计不合理、系统架构不佳以及其他数据库选择和优化策略不足也是重要因素。综合考虑这些方面才能有效解决性能问题,而MySQL通过不断改进和优化,仍然是许多应用场景中的可靠选择。
148 9
|
4月前
|
存储 SQL 关系型数据库
PHP与MySQL交互的奥秘
【8月更文挑战第29天】在编程的世界里,PHP和MySQL就像是一对默契的舞伴,共同演绎着数据的交响曲。本文将带你探索它们之间的互动,从连接数据库到执行查询,再到处理结果,每一步都充满了节奏与和谐。我们将一起走进这段代码的旅程,感受数据流动的魅力。