CVS update: phpdoc/functions

From: Date: Wed, 16 Jun 1999 06:41:50 +0000
Subject: CVS update: phpdoc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-7009@lists.php.net to get a copy of this message
Date: Wednesday June 16, 1999 @ 2:41 Author: steinm Update of /repository/phpdoc/functions In directory php:/tmp/cvs-serv20858/functions Modified Files: cpdf.sgml Log Message: added cpdf docs Index: phpdoc/functions/cpdf.sgml diff -u phpdoc/functions/cpdf.sgml:1.2 phpdoc/functions/cpdf.sgml:1.3 --- phpdoc/functions/cpdf.sgml:1.2 Tue Jun 15 16:59:47 1999 +++ phpdoc/functions/cpdf.sgml Wed Jun 16 02:41:49 1999 @@ -19,22 +19,43 @@ show no difference in speed at all. The file size is also similar if compression is turned off. +<<<<<<< cpdf.sgml <simpara> This documentation should be read with the ClibPDF manual in reach since + it explains much of the library in much more detail. Once you understand + the manual of ClibPDF you should be able to start of coding in PHP. + + <simpara> + 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 as a first parameter the +======= + <simpara> + This documentation should be read with the ClibPDF manual in reach since it explains much of the library in much more detail. <simpara> Many functions in ClibPDF and the php3 module as well as in pdflib have the same name. All functions except for cpdf_open() take as a first parameter the +>>>>>>> 1.2 handle for the document on which the function is to be performed. Currently this handle is not used internally since ClibPDF does not support the creation of several pdf documents at the same time and +<<<<<<< cpdf.sgml + distinguishing them by a document handle. Actually, you should not + even try it, the results are unpredictable. I cannot oversee what + the consequences in a multi threaded environment are. + According to the author of ClibPDF this will change in one of the + next releases (current version when this was written is 1.10). + If you need this functionality use the pdflib module. +======= distinguishing them by a document handle. Actually, you should not even try it, the results are unpredictable. According to the author of ClibPDF this will change in one of the next releases (current version when this was written is 1.10). If you need this functionality use the pdflib module. +>>>>>>> 1.2 <simpara> One big advantage of ClibPDF over pdflib is the possibility to create @@ -1606,6 +1627,24 @@ The <function>cpdf_add_outline</function> function adds a bookmark with text <parameter>text</parameter> that points to the current page. + <example> + <title>Adding a page outline</title> + <programlisting> +&lt;?php +$cpdf = cpdf_open(0); +cpdf_page_init($cpdf, 1, 0, 595, 842); +cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1"); +// ... +// some drawing +// ... +cpdf_finalize($cpdf); +Header("Content-type: application/pdf"); +cpdf_output_buffer($cpdf); +cpdf_close($cpdf); +?> + </programlisting> + <para> + </example> </refsect1> </refentry>

« previous php.dev (#7009) next »