Start up with ClibPDF functions
| From: | Sephiroth | Date: | Fri, 09 May 2003 07:12:03 +0000 |
| Subject: | Start up with ClibPDF functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146975@lists.php.net to get a copy of this message | ||
Hi,
Is there anyone have experiences about using ClibPDF functions?
the following example don't work with my machine...
<?php
$cpdf = cpdf_open(0);
cpdf_page_init($cpdf, 1, 0, 595, 842, 1.0);
cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1");
cpdf_begin_text($cpdf);
cpdf_set_font($cpdf, "Times-Roman", 30, "WinAnsiEncoding");
cpdf_text($cpdf, "Times Roman outlined", 50, 750);
cpdf_end_text($cpdf);
cpdf_finalize($cpdf);
Header("Content-type: application/pdf");
cpdf_output_buffer($cpdf);
cpdf_close($cpdf);
?>
Linux with Apache HTTP Server:
PHP/4.1.2
cpdf/2.02-r1-0 => from www.fastio.com
phpinfo() display CPDF Support enabled
regards,
Sepho