如何用PHP生成PDF文件? [英] How to generate PDF files with PHP?
本文介绍了如何用PHP生成PDF文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些HTML,其中包括粗体,斜体,小标签,大标签,blockquote标签,项目符号和编号项目.我需要通过PHP将其转换为PDF.我尝试了FPDF,但是它太复杂了.我尝试了html2pdf PHP库,该库使用FPDF,但是它有很多错误且不可靠.您有什么建议?
I have some HTML that includes bolding, italics, small tag, big tag, blockquote tag, bullets, and numbered items. I need to convert it to PDF via PHP. I tried FPDF, but it was entirely too complex. I tried the html2pdf PHP library, which uses FPDF, but it was very buggy and unreliable. What do you recommend?
注意:想象一下您的典型简历.我需要格式化类似的东西.
Note: Imagine your typical resume. I'm needing to format something like that.
推荐答案
看看 FPDF
这篇关于如何用PHP生成PDF文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文