-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Matt Hyclak Sent: Tuesday, January 02, 2007 1:00 PM To: CentOS mailing list Subject: Re: [CentOS] PDFlib?
On Sun, Dec 31, 2006 at 10:25:07AM -0600, Mike Kercher enlightened us:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Matt Hyclak Sent: Saturday, December 30, 2006 10:01 PM To: CentOS mailing list Subject: Re: [CentOS] PDFlib?
On Sat, Dec 30, 2006 at 05:09:57PM -0600, Mike Kercher
enlightened us:
I'm trying to create pdf's on the fly with php, but I'm
getting errors
such as:
Fatal error: Call to undefined function: pdf_new()
I tried installing pdflib from dag, but I think I'm missing
something
to plug it into php.
Has anyone done this?
Yes, the PDFlib in dag's repo isn't for php, if I remember correctly. I ended up building PDFlib-Lite from the website using the SRPM from pld linux, then updated the php-pecl-pdflib
RPM from
rpmforge (dag) to 2.1.2 and installed that.
I'm no longer using them in production, but I've still got spec files if you need some guidance.
Matt
Matt,
Thanks for the info. I would be very interested in your
.spec files
and any other guidance you may have.
Sorry, I've been out with the holidays and all. I've attached the src.rpm for php-pecl-pdflib and a .nosrc.rpm for PDFLib-Lite. You'll have to download PDFLib-Lite 6.0.3 from their website to rebuild, but that should get you in the right direction.
HTH,
Matt
--
Thanks for all of the help guys! I think I actually got it working yesterday by doing a pear install pdflib and then installing a php-pecl-pdflib rpm for FC3. I'm going to try rebuilding these .src.rpm's so I have a cleaner installation.
Thanks again!
Mike