You need a call to pdf_open_file($pdf) before you can start doing
anything.
-Rasmus
On Wed, 5 Sep 2001, Daniel Andersson wrote:
> hello
>
> had everything working and fine.
> when i went back to the page today, nothing worked.
>
> i can (almost) bet my sack on that i haven't changed any code.
>
> Fatal error: PDFlib error: function 'PDF_set_info' must not be called in
> 'object' scope
>
> is the error i get.
>
> the code is
>
> $pdf = pdf_new();
>
> >> pdf_set_info($pdf, "Author", "AuralQuest"); <<
> pdf_set_info($pdf, "Title", "Invoice");
> pdf_set_info($pdf, "Creator", "AuralQuest");
> pdf_set_info($pdf, "Subject", "Invoice");
>
> pdf_set_parameter($pdf, "warning", "true");
>
>
> the error is on the "highlighted" line.
> if i comment out these lines, i get the same error on the line with
>
> pdf_begin_page($pdf, 595, 842);
>
>
> what have i missed?
>
>
> thanks in advance
>
> / d
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]