Strange pdf function error?

From: Date: Wed, 17 Jan 2001 22:11:48 +0000
Subject: Strange pdf function error?
Groups: php.general 
Request: Send a blank email to php-general+get-35179@lists.php.net to get a copy of this message
I get this error: <br> <b>Fatal error</b>: Internal pdflib error: Wrong order of function calls (PDF_open_mem) in <b>/home/httpd/html/test/test.pdftest2.php</b> on line <b>5</b><br> when I run this code <?php header ("Content-type: application/pdf"); $pdf = pdf_open(); pdf_set_info($pdf, "Subject", "Testing"); pdf_begin_page($pdf, 550, 800); pdf_add_outline($pdf, "Page 1"); pdf_set_font($pdf, "Times-Roman", 30, "host"); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "This text should be Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); pdf_end_page($pdf); pdf_close($pdf); ?> What I'm trying to do is create a .pdf on the fly and send it to the browser. I want to do in all in memory and not have any pdfs cluttering up my server. Thanks!

« previous php.general (#35179) next »