You can use the pdf functions in PHP to create pdf files if you
have the PDF library (available at http://www.ifconnection.de/~tm/)
by Thomas Merz. Please consult the excelent documentation for
pdflib shipped with the source distribution of pdflib or available
at http://www.ifconnection.de/~tm/software/pdflib/PDFlib-0.6.pdf.
As long as this documentation is not complete the pdflib
documentation should be your first choice. The functions in pdflib
and the php3 module have the same name. The parameteres are also
identical. You should also understand some of the concepts of pdf
to efficiently use this module.
The pdf module introduces two new types of variables. They are called
pdfdoc and pdfinfo.
pdfdoc is a pointer to a PDF document and
almost all functions need it as its first parameter.
pdfinfo contains meta data about the PDF
document.
In order to output text into a PDF document you will need to provide
the afm file for each font. By default these afm files are searched
for in a directory named 'fonts' relative to the directory where the
php3 script is located.