mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
update or add pdf functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@207465 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
863001aa52
commit
15a6d5ccd4
1 changed files with 34 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<!-- $Revision: 1.21 $ -->
|
||||
<!-- Purpose: utilspec.nontext -->
|
||||
<!-- Membership: pecl, external -->
|
||||
|
||||
|
@ -34,18 +34,39 @@
|
|||
thorough explanation of the coordinate system used.
|
||||
</para>
|
||||
<para>
|
||||
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 <function>$p = PDF_new();</function>
|
||||
which is used as the first parameter in all further function calls, e.g.
|
||||
as in <function>PDF_begin_document($p, "", "")</function>.
|
||||
In PHP 5, a PDFlib object is created with
|
||||
<function>$p = new PDFlib()</function> instead. This object offers
|
||||
all PDFlib API functions as methods, e.g. as with
|
||||
<function>$p->begin_document("", "")</function>.
|
||||
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:
|
||||
</para>
|
||||
<para>
|
||||
In PHP 4, first a PDF resource has to be retrieved
|
||||
with a function call like
|
||||
</para>
|
||||
<para>
|
||||
$p = PDF_new().
|
||||
</para>
|
||||
<para>
|
||||
This PDF resource is used as the first parameter in all further function calls, such
|
||||
as in
|
||||
</para>
|
||||
<para>
|
||||
PDF_begin_document($p, "", "").
|
||||
</para>
|
||||
<para>
|
||||
In PHP 5 however, a PDFlib object is created with
|
||||
</para>
|
||||
<para>
|
||||
$p = new PDFlib().
|
||||
</para>
|
||||
<para>
|
||||
This object offers all PDFlib API functions as methods, e.g. as with
|
||||
</para>
|
||||
<para>
|
||||
$p->begin_document("", "").
|
||||
</para>
|
||||
<para>
|
||||
In addition, exceptions have been introduced in PHP 5 which are
|
||||
supported by PDFlib 6 and later as well.
|
||||
</para>
|
||||
<para>
|
||||
Please see the <link linkend="pdf.examples">examples</link> below for
|
||||
|
|
Loading…
Reference in a new issue