Question about PDF functions and PDFLib 3.03

From: Date: Thu, 15 Feb 2001 16:56:07 +0000
Subject: Question about PDF functions and PDFLib 3.03
Groups: php.general 
Request: Send a blank email to php-general+get-39936@lists.php.net to get a copy of this message
I'm running PHP4.0.4pl1-Win32, Zend Engine v1.0.4, Zend Optimizer v1.0.0, I tryed to run sample script for creating PDF document. It's PHP manual script, but I get message like this: Fatal error: Call to undefined function: pdf_new() in c:/web/pdf/pdf.php on line 2 phpinfo.php said: PDF Support enabled PDFLib Version 3.03 CJK Font Support yes In-memory PDF Creation Support yes Can you help me with this problem? Thanks in advance, Vladmir P.S. Here is a PDF that I wanted to create. <?php $pdf = PDF_new(); PDF_open_file($pdf, "test.pdf"); PDF_set_info($pdf, "Author", "Uwe Steinmann"); PDF_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0"); PDF_set_info($pdf, "Creator", "See Author"); PDF_set_info($pdf, "Subject", "Testing"); PDF_begin_page($pdf, 595, 842); PDF_add_outline($pdf, "Page 1"); PDF_set_font($pdf, "Times-Roman", 30, "host"); PDF_set_value($pdf, "textrendering", 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); PDF_delete($pdf); echo "<A HREF=getpdf.php>finished</A>"; ?>

« previous php.general (#39936) next »