Re: pdflib?

From: Date: Wed, 05 Sep 2001 16:57:48 +0000
Subject: Re: pdflib?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66061@lists.php.net to get a copy of this message
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 > > > >

« previous php.general (#66061) next »