From 15a6d5ccd47a343f8d486300567b1d34455214a5 Mon Sep 17 00:00:00 2001 From: Katja Schnelle Romaus Date: Sat, 18 Feb 2006 21:43:04 +0000 Subject: [PATCH] update or add pdf functions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@207465 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdf/reference.xml | 47 +++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/reference/pdf/reference.xml b/reference/pdf/reference.xml index ee67688d03..f06383e269 100644 --- a/reference/pdf/reference.xml +++ b/reference/pdf/reference.xml @@ -1,5 +1,5 @@ - + @@ -34,18 +34,39 @@ thorough explanation of the coordinate system used. - With version 6, PDFlib offers an object oriented API for PHP 5 in - addition to the function oriented API for PHP 4. The main difference is - the following: In PHP 4, first a PDF resource has to be retrieved - with a function call like $p = PDF_new(); - which is used as the first parameter in all further function calls, e.g. - as in PDF_begin_document($p, "", ""). - In PHP 5, a PDFlib object is created with - $p = new PDFlib() instead. This object offers - all PDFlib API functions as methods, e.g. as with - $p->begin_document("", ""). - In addition, exceptions have been introduced in PHP 5 which are - supported by PDFlib 6 and later as well. + With version 6, PDFlib offers an object oriented API for PHP 5 in + addition to the function oriented API for PHP 4. The main difference is + the following: + + + In PHP 4, first a PDF resource has to be retrieved + with a function call like + + + $p = PDF_new(). + + + This PDF resource is used as the first parameter in all further function calls, such + as in + + + PDF_begin_document($p, "", ""). + + + In PHP 5 however, a PDFlib object is created with + + + $p = new PDFlib(). + + + This object offers all PDFlib API functions as methods, e.g. as with + + + $p->begin_document("", ""). + + + In addition, exceptions have been introduced in PHP 5 which are + supported by PDFlib 6 and later as well. Please see the examples below for