|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
php & pdf
I am new to PHP. I am trying to create and display a pdf file in my php page.
I have PHP 4.1.1 and PDFLib 4.0.3. Your help is very much appreciated. Can anybody tell me what's wrong with the following code, NO errors in the log file.I am sending the output to the browser but nothing is getting displayed. <? $pdf = PDF_new(); PDF_open_file($pdf); header( "Content-type: application/pdf" ); header( "Content-Disposition: attachment; filename=modulo.pdf" ); header( "Content-Description: PHP3 Generated Data" ); PDF_begin_page($pdf, 595, 842); $im = PDF_open_jpeg($pdf, "pass4_sml.jpg"); pdf_place_image($pdf, $im, 100, 300, 3); pdf_end_page($pdf); PDF_close($pdf); $buffer = PDF_get_buffer($pdf); ?> is there some issue with my set up Thank u |
|
#2
|
|||||
|
|||||
|
RE: php & pdf
i've never worked the pdf extension.. but, try this
php Code:
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > php & pdf |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|