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