Basic Usage Examples

Most of the functions are fairly easy to use. The most difficult part
is probably creating your first PDF document. The following
example should help to get you started. It is developed for PHP 4 and
creates the file hello.pdf with one page.
It defines some document info field contents, loads the Helvetica-Bold
font and outputs the text "Hello world! (says PHP)".

The following example comes with the PDFlib distribution for PHP 5.
It uses the new exception handling and object encapsulation features
available in PHP 5. It creates the file hello.pdf
with one page. It defines some document info field contents, loads the
Helvetica-Bold font and outputs the text "Hello world! (says PHP)".