Re: pdflib?

From: Date: Wed, 05 Sep 2001 17:07:42 +0000
Subject: Re: pdflib?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66064@lists.php.net to get a copy of this message
a-ha. that works. wonder why it worked without it? oh well, it works now. thanks a million! / d "Rasmus Lerdorf" <rasmus@php.net> wrote in message news:Pine.LNX.4.33.0109050957200.1177-100000@rasmus.php.net... > 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 (#66064) next »