PDFlib License
The Aladdin Free Public License allows the use of PDFlib for:

Commercial license required for any commercial use including commercial web services.

http://pdflib.com

Alternatives
Why use PDF with PHP?