[PHP] pdf question

2003-09-30 Thread Floyd Baker
Hello...

I have created a routine which outputs a pdf file of 'data only'.
It is to be printed onto a pdf form which I obtain elsewhere.

At present we are printing the blank form.  Then placing it into the
paper tray in order to print the data file to it.  

I would like to cause the data and form to both be printed on a single
sheet, in one operation.  That is; is it possible to cause the two
files to be accessed in sequence, so that there is not a paper feed
between them?  For one to overlay the other?  

Many thanks

Floyd 


--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] pdf question

2002-09-30 Thread Marek Kilimajer

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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] pdf question

2002-09-29 Thread Jonas Geiregat

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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] pdf question?

2001-03-30 Thread Fai

Does any body has some code samples on how to use PHP to generate PDF
document?

also any examples on how to use PHP to convert the text of Chinese
Traditional Big5
into Chinese Simplified GB?

Thank You very much!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]