Re: Fatal Error: PDFlib error ...
| From: | Sven | Date: | Mon, 15 Dec 2003 12:55:57 +0000 |
| Subject: | Re: Fatal Error: PDFlib error ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172729@lists.php.net to get a copy of this message | ||
Matthias Nothhaft schrieb:
Hi, I'm trying to get the pdflib work... I use pdflib 4.0.3 downloaded from pdflib.de and php 4.3.4 on Debian Linux. I wrote this test code:hi matthias, if you want to use this lib it's good to be familiar with classes and objects in php. the manual can help you at this. now to your code.
<?php dl("libpdf_php.so"); $pdf = pdf_new(); you just created a php-object $pdf.for your further methods you must explicit declare them to your objects:
pdf_begin_page($pdf, 421, 595); $pdf->pdf_begin_page($pdf, 421, 595);... and so on. hth SVEN