Hello,
I want to make a report in pdf format. But I cannot make the required pdf file. My environment is as follows:
1. PHP3
2. IIS4
3. Oracle 8.1.5
4. PDFlib V0.6 (C)
5. Acrobat writer is also installed.
Pdf_open() function does not execute in my script and no error pops up. Finally it gives a timeout error.
Is the problem related to Acrobat writer path setting? If so, then where to set the path?
I cant figure out, what else can be the problem.
Following is my script:
<?php
$fp = fopen("test.txt", "r");
$info = PDF_get_info();
pdf_set_info_author($info, "Uwe Steinmann");
PDF_set_info_title($info, "Test for PHP wrapper of PDFlib 0.6");
PDF_set_info_author($info, "amit");
pdf_set_info_creator($info, "amit");
pdf_set_info_subject($info, "Testing");
pdf_set_info_Keywords($info, "Test, Fields");
$pdf = PDF_open($fp, $info);
PDF_begin_page($pdf, 595, 842);
PDF_add_outline($pdf, "Page 1");
pdf_set_font($pdf, "Times-Roman", 30, 4);
pdf_set_text_rendering($pdf, 1);
PDF_show_xy($pdf, "Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
PDF_end_page($pdf);
PDF_close($pdf);
fclose($fp);
echo "<A HREF=getpdf.php3>finished</A>";
?>
Thanks in advance.
Amit