correcting doc bug #10286, reworded information about clibpdf being able to create pdf documents in memory. It looked like someone had tried to remove the comparison between clibpdf and pdflib, but it was confusing. I also removed a lot of the information about clibpdf being faster, etc. than pdflib since it was information from circa pdflib 2.0 and we really aren't trying to promote one over the other.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48025 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-05-21 03:26:27 +00:00
parent 890122a2d7
commit da763ecc6a

View file

@ -4,29 +4,21 @@
<partintro>
<simpara>
ClibPDF lets you create PDF documents with PHP. It is available at
<ulink url="&url.fastio;">FastIO</ulink> but it isn't free
software. You should definitely read the licence before you start
playing with ClibPDF. If you cannot fullfil the licence agreement
consider using pdflib by Thomas Merz, which is also very powerful.
ClibPDF functionality and API is similar to Thomas Merz's pdflib but,
according to FastIO, ClibPDF is faster and creates smaller documents.
This may have changed with the new version 2.0 of pdflib. A simple
benchmark (the pdfclock.c example from pdflib 2.0 turned into a php
script) actually shows no difference in speed at all. The file size
is also similar if compression is turned off. So, try them both
and see which one does the job for you.
ClibPDF lets you create PDF documents with PHP. It is available for
download from <ulink url="&url.fastio;">FastIO</ulink>, but
requires that you purchase a license for commercial use. ClibPDF
functionality and API is similar to <link
linkend="ref.pdf">PDFlib</link>.
</simpara>
<simpara>
This documentation should be read alongside the ClibPDF manual since it
explains the library in much greater detail.
</simpara>
<simpara>
Many functions in the native ClibPDF and the PHP module, as
well as in pdflib, have the same name. All functions except for
<function>cpdf_open</function> take the handle for the document as
their first parameter.
Many functions in the native ClibPDF and the PHP module, as well
as in <link linkend="ref.pdf">PDFlib</link>, have the same name.
All functions except for <function>cpdf_open</function> take the
handle for the document as their first parameter.
</simpara>
<simpara>
Currently this handle is not used internally since ClibPDF does
@ -45,12 +37,13 @@
</simpara>
</note>
<simpara>
One big advantage of ClibPDF over pdflib used to be the possibility
to create
the pdf document completely in memory without using temporary files.
It also provides the ability to pass coordinates in a predefined
unit length. This is a handy feature but can be simulated with
<function>pdf_translate</function>.
A nice feature of ClibPDF (and <link
linkend="ref.pdf">PDFlib</link>) is the ability to create the pdf
document completely in memory without using temporary files. It
also provides the ability to pass coordinates in a predefined unit
length. (This feature can also be simulated by
<function>pdf_translate</function> when using the <link
linkend="ref.pdf">PDFlib</link>. functions.)
</simpara>
<simpara>
Another nice feature of ClibPDF is the fact that any page can be modified