From da763ecc6a0b6e58d629931b32732ebc5e4a0d4f Mon Sep 17 00:00:00 2001 From: Daniel Beckham Date: Mon, 21 May 2001 03:26:27 +0000 Subject: [PATCH] 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 --- functions/cpdf.xml | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/functions/cpdf.xml b/functions/cpdf.xml index 31d6e1fcf6..28330858e1 100644 --- a/functions/cpdf.xml +++ b/functions/cpdf.xml @@ -4,29 +4,21 @@ - ClibPDF lets you create PDF documents with PHP. It is available at - FastIO 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 FastIO, but + requires that you purchase a license for commercial use. ClibPDF + functionality and API is similar to PDFlib. This documentation should be read alongside the ClibPDF manual since it explains the library in much greater detail. - - Many functions in the native ClibPDF and the PHP module, as - well as in pdflib, have the same name. All functions except for - cpdf_open take the handle for the document as - their first parameter. + Many functions in the native ClibPDF and the PHP module, as well + as in PDFlib, have the same name. + All functions except for cpdf_open take the + handle for the document as their first parameter. Currently this handle is not used internally since ClibPDF does @@ -45,12 +37,13 @@ - 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 - pdf_translate. + A nice feature of ClibPDF (and PDFlib) 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 + pdf_translate when using the PDFlib. functions.) Another nice feature of ClibPDF is the fact that any page can be modified