PDF.... file
Posted by: welguri (---.static.spo.virtua.com.br)
Date: September 18, 2008 09:55PM

I'm using wamp5.
I'm trying to generate a pdf file in the wamp5 more is not running this by mistake.

this is the mistake

Fatal error: Call to undefined function pdf_new() in C:\wamp\www\wel\Sistema\coordenadas.php on line 2

Options: ReplyQuote
Re: PDF.... file
Posted by: toivo (---.nsw.bigpond.net.au)
Date: September 18, 2008 10:22PM

Hi,

According to the manual at [php.net], this is the format you need to use:

$p = new PDFlib();

Rather than using PDFLib Lite for development and having to buy the licence to use the real thing for a commercial site, I use FPDF from [fpdf.org].

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: PDF.... file
Posted by: welguri (---.static.spo.virtua.com.br)
Date: September 18, 2008 11:06PM

Thank you.
I have to download a class to work with pdf?

Options: ReplyQuote
Re: PDF.... file
Posted by: toivo (203.19.130.---)
Date: September 19, 2008 06:50AM

Hi,

As the PHP manual says at [php.net], the Open Source version that comes with PHP is PDFlib Lite which "...allows free use only under certain conditions". If you plan to use PDFLib in a commercial setup, you will need to purchase a licence.

The FPDF product is self-contained and free.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote


Sorry, only registered users may post in this forum.