Best way to create a PDF with PHP
I've been reading up on creating a PDF file with PHP and am wondering what the easiest option is.
Create a PDF template, open it and replace placeholder text -- which function do I use to open an existing PDF for editing?
Create a PDF template and place text on it using co-ordinates
Create a HTML document then convert it to PDF using some sort of free tool?
Create a PDF from scratch using PHP (this seams like a time consuming way to do it).
The one that i know of as being best is the FPDF. It is great open-source solution for creating all sorts of PDF layouts. Thanks
See FPDF tutorials
And scripts
If you want very advanced features in PDF creation then try TCPDF . If you want just minimal features of PDF creation and want a smaller in size class then try FPDF .
The following link has an article describing these two PDF generating class libraries: Easily create PDF with PHP
Time consuming but best results.. I use Fpdf
I have also had some success with html2pdf which tries to convert html to a pdf document.
链接地址: http://www.djcxy.com/p/88526.html上一篇: 使用HTML和CSS生成PDF
下一篇: 使用PHP创建PDF的最佳方式