note 18882 rejected from function.pdf-open-file by didou

From: Date: Fri, 03 Oct 2003 10:23:48 +0000
Subject: note 18882 rejected from function.pdf-open-file by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57674@lists.php.net to get a copy of this message
Note Submitter: freek@twisted.nl ---- When i specify a filename with this function, how should i get the result back? Can somebody gives me an example or edit the on below : thx <?php $pdf = pdf_new(); pdf_open_file($pdf, "test.pdf"); pdf_begin_page($pdf, 595, 842); pdf_set_font($pdf, "Times-Roman", 30, "host"); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "A PDF document created in memory!", 50, 750); pdf_end_page($pdf); pdf_close($pdf); $data = pdf_get_buffer($pdf); //????? header("Content-type: application/pdf"); header("Content-disposition: inline; filename=test.pdf"); header("Content-length: " . strlen($data)); echo $data; ?>

« previous php.notes (#57674) next »