Re: pdf question
| From: | Marek Kilimajer | Date: | Mon, 30 Sep 2002 11:48:40 +0000 |
| Subject: | Re: pdf question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118188@lists.php.net to get a copy of this message | ||
I think you can still make a tempfile in /tmp, use this directory
Jonas Geiregat wrote:
this is my code <?php $pdf = pdf_new(); pdf_open_file($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, "text here", 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; ?> I can't save the pdf file on server cause webserver doesn't have write permission to the dir I normally wanted to be in but I just want to generate a pdf file and send it as attachement with email how can I do this by generating the pdf in memory