What is FPDF?FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. The advantage is that PDFlib requires a fee for a commercial usage. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
FPDF可以让我们创建pdf文件而不用去调用PDFlib
这里可以下到最新的windows下的版本:
这里可以下到中文手册:
若要其他版本可以到这里下到:
下面是一个很简单的用FPDF创建一个pdf文件并添加一页的例子
Image()可以在pdf中插入图片,前面是文件名,要包括路径,5是横坐标,30是纵坐标,60是图片宽度,50是高度ok,这样一个又有文字又有图片的pdf文件就建立了 ^^其实还有很多功能,手册中都有写,但不是很详细,需要各位自己去研究发掘了 ^^
本文由威尼斯888发布于计算机网络 / 编程,转载请注明出处:这里可以下到中文手册
关键词: