After including the library file, we create an FPDF object.
包含进库文件之后,我们创建了一个FPDF对象。
FPDF: Get the library used to generate PDF files in this article.
FPDF:获取生成本文所述pdf文件的库。
Below is an example of how you can generate a simple PDF using FPDF.
下面是你如何能生成一个简单的PDF使用FPDF的例子。
The first step is to download the FPDF library and install it in the same directory as the existing set of application files.
第一步是下载fpdf库,然后将其安装在与现有应用文件集相同的目录中。
The FPDF() constructor is used here with the default values: pages are in A4 portrait and the unit of measure is millimeter.
这里使用了默认值调用FPDF()这个构造器:纸张类型为A4,计量单位为毫米。
From there, the script creates an FPDF object, sets the font, adds a page, puts some text on the page using the Cell method, and outputs the PDF.
这段脚本从该库创建了一个FPDF对象,设置字体,添加一个页面,然后使用Cell方法将一些文本放在该页面上,并输出pdf。
From there, the script creates an FPDF object, sets the font, adds a page, puts some text on the page using the Cell method, and outputs the PDF.
这段脚本从该库创建了一个FPDF对象,设置字体,添加一个页面,然后使用Cell方法将一些文本放在该页面上,并输出pdf。
应用推荐