Reputation: 663
How do I generate PDF files with PHP. php.net says that pdflib needs to be installed to use functions such as new_pdf ()
.
However, pdflib is not free and the lite version is not allowed for commercial use. I am confused. I would have thought PHP would have some built-in functionality to create PDF files.
How do I get through this as I do not want to use libraries such as fpdf, etc.?
Upvotes: 3
Views: 2391
Reputation: 5191
PHP does not have any in-built functions, so you have to use libraries. TCPDF is the easiest modules and it's free.
Upvotes: 1
Reputation: 605
If you don't want to use pdflib, you will have to use another third-party library.
Zend provides one as part of the Zend Framework. But the ones we have used for various purposes are:
Upvotes: 1
Reputation: 9110
You should try the following. They are some useful PHP libraries for PDF documents:
See Stack Overflow questions Generate PDF from HTML PHP and How to generate PDF files with PHP?.
It's your choice with which you feel more comfortable.
Upvotes: 5