如何使用PHP制作pdf文件 [英] How to make a pdf file using PHP

查看:103
本文介绍了如何使用PHP制作pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在PHP中制作PDF文件.我想做的是一份学生名单.因此,我想查询数据库,获取信息,并在他单击生成学生列表时以PDF形式将其提供给用户.

How can I make a PDF file in PHP. What I want to make is a student list. So I want to query the database, get the information and give it to the user as a PDF when he clicks generate student list.

推荐答案

您有两个不错的选择,首先是用于操作pdf的标准php库: http://us2.php.net/pdf

You have two good options first is the standard php library for manipulating pdf's: http://us2.php.net/pdf

或者您可以使用 http://www.fpdf.org/.我建议第二个.

Or you can use http://www.fpdf.org/. I would recommend the second.

其他选项包括: www.pdflib.com

这篇关于如何使用PHP制作pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆