如何用PHP创建PDF文件? [英] How to create a PDF file with PHP?
本文介绍了如何用PHP创建PDF文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能的重复项:
使用PHP将HTML + CSS转换为PDF吗?
Possible Duplicates:
Convert HTML + CSS to PDF with PHP?
我正在处理我的新项目.我想借助PHP代码生成一个新的PDF文件.
I am working with my new project. I want to generate a new PDF file with the help of PHP code.
我该怎么做?你有什么想法吗?
How can I do this? Do you any have any ideas?
推荐答案
您可以尝试使用 fPdf 之类的免费库
You can try free libraries like fPdf
FPDF是一个PHP类,它允许 用纯PHP生成PDF文件 就是说不用PDFlib 图书馆. FPDF中的F表示免费: 您可以将其用于任何用途 并对其进行修改以适合您的需求.
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
这篇关于如何用PHP创建PDF文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文