pdf in php
| From: | sonjaya | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | pdf in php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116131@lists.php.net to get a copy of this message | ||
i create some pdf in php like this :
<?php
$p=PDF_new();
PDF_open_file($p,"");
PDF_begin_page($p,595,842);
$font=PDF_findfont($p,"Helvetica-Bold","host",0);
PDF_setfont($p,$font,18.0);
PDF_set_text_pos($p,50,700);
PDF_show=($p,"Tess pdf!");
PDF_continue_text($p,"Line 2 nih");
PDF_end_page($p);
PDF_close($p);
$buf=PDF_get_buffer($p);
$len=strlen($buf);
header("Content-type:application/pdf");
header("Content-Lenght:$len");
print $buf;
PDF_delete($p);
?>
and i get error message like this:
Warning: Failed opening '/home/web/html/pdf.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0
sicute