[PHP] Problem with PDFlib
Hi, I just moved a site to a new server. I haven't touched the site forever and i forgot how to use PDFlib (using fpdf now). Anyways, i'm getting this error: Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in /home/www/lonestar.seryx.net/https/pdf/invoice.php on line 18 Line 18 is the following: PDF_set_info($p, Creator, invoice.php); It will do that for any other line too if i comment that out (that is using pdf stuff) Any ideas? Thanks Teren
Re: [PHP] Problem with PDFlib
Someone else had a problem like this a while back- iirc it's caused when permissions are insufficient (ie, failed to open file). Just search google, it's easy to find. On Thursday 11 March 2004 01:12 pm, Teren wrote: Hi, I just moved a site to a new server. I haven't touched the site forever and i forgot how to use PDFlib (using fpdf now). Anyways, i'm getting this error: Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in /home/www/lonestar.seryx.net/https/pdf/invoice.php on line 18 Line 18 is the following: PDF_set_info($p, Creator, invoice.php); It will do that for any other line too if i comment that out (that is using pdf stuff) Any ideas? Thanks Teren -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- The public have an insatiable curiosity to know everything. Except what is worth knowing. Journalism, conscious of this, and having tradesman-like habits, supplies their demands. -Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem Installing pdflib
I have been having troubles getting pdflib 4.0.1 to install with php 4.0.5 and redhat 7.0. Everything appears to be working until I get part way through making php. Then I get these errors: pdf.c: In function `php_if_pdf_close_pdi_page': pdf.c:2704: too many arguments to function `PDF_close_pdi_page' make[3]: *** [pdf.lo] Error 1 make[3]: Leaving directory `/home/ken/php-4.0.5/ext/pdf' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ken/php-4.0.5/ext/pdf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ken/php-4.0.5/ext' make: *** [all-recursive] Error 1 I am using the following config script. ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-gd --with-jpeg --with-ttf --with-pdflib --with-png-dir=/usr/lib --with-tiff-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-imap --enable-track-vars --with-jpeg-dir=/usr/lib/ Does anyone have any thoughts as to what this might be? Thanks Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem with PDFLib - pdf_show_boxed()
I have a problem with the PDFLib library under PHP. The following script should print two texts, one is Times Roman outlined the other Ti mes Rom an out lin ed. They are using different functions to do so. Only the first text is displayed in my PDF document (which, besides that, is shown nicely). What is wrong with the other function call? Tech info: Windows 2000 server, IIS 5.0, PHP 4.0.5, PDFLib 4.0.1 Please reply to me offlist, since I cannot subscribe at the moment (I get no confirmation from the list-daemon???) - ?php $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 595, 842); pdf_set_value($pdf, textrendering, 0); pdf_set_font($pdf, Times-Roman, 12, host); pdf_show_xy($pdf, Times Roman outlined, 50, 550); pdf_show_boxed($pdf, Ti mes Rom an out lin ed, 50, 550, 120, 400, left); pdf_end_page($pdf); pdf_close($pdf); $buf = pdf_get_buffer($pdf); $len = strlen($buf); pdf_delete($pdf); header(Content-type: application/pdf); header(Content-Length: $len); print $buf; ? --- - Carsten