On Wednesday 10 December 2003 09:08 pm, Matthias Nothhaft wrote:
> 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:
>
> <?php
>
> dl("libpdf_php.so");
>
> $pdf = pdf_new();
> pdf_begin_page($pdf, 421, 595);
> pdf_set_font($pdf, "Helvetica", 24, "host");
> pdf_show_xy($pdf, "Hello World!", 75, 200);
> pdf_end_page($pdf);
> pdf_close($pdf);
>
> $buffer = pdf_get_buffer($pdf);
>
> $f = fopen("test.pdf", "bw");
> fwrite($f, $buffer);
> fclose($f);
>
> ?>
>
> and got
>
> Fatal error: PDFlib error: function 'PDF_begin_page' must not be called
> in 'object' scope in /var/www/Software/cms4rent/pdftest.php on line 5
>
> Why is that?

google (including quotes): "must not be called in 'object' scope"
result #2: http://www.alt-php-faq.org/local/87/

Rather cryptic error message... hmpf.

>
>
> Any help would be great.
>
> Regards,
> Matthias

-- 
Evan Nemerson
[EMAIL PROTECTED]
http://coeusgroup.com/en

--
"It is an unfortunate fact that every man who seeks to disseminate knowledge 
must contend not only against ignorance itself, but against false instruction 
as well. No sooner do we deem ourselves free from a particularly gross 
superstition, than we are confronted by some enemy to learning who would set 
aside all the intellectual progress of years, and plunge us back into the 
darkness of medieval disbelief."

-HP Lovecraft

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to