Koozali.org: home of the SME Server

PHP pdflib

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP pdflib
« Reply #15 on: March 05, 2008, 03:47:07 AM »
ergozd

Turns out that all I had to do was change my background image to be a "png" rather than a "jpg" and everything seems to work great now! My invoice text is now appearing in pdf format against my invoice image background.
I guess that the pdflib install wasn't compiled with support for jpg images for some reason.
Not sure how I could get the jpg support but for now it is working with png image support so I am thankful.

Anyway, just wanted to thank you again for helping me out as it sure is appreciated.  :grin:


edb
......

Offline ergozd

  • *
  • 7
  • +0/-0
Re: PHP pdflib
« Reply #16 on: March 05, 2008, 01:50:52 PM »
Hi edb!

Glad to hear that it works.  :cool:

I have to admit I know very little about PDFLIB so I did some searching and found out more about compile options at
http://www.science.uva.nl/ict/ossdocs/php4/ref.pdf.html

I added some more compile options and generated a new RPM you might want to test
Code: [Select]
        --with-jpeg-dir=%{_prefix} \
        --with-png-dir=%{_prefix} \
        --with-tiff-dir=%{_prefix} \
http://ergin.dyndns.org/download/sme7_contribs/experimental/php-pecl-pdflib-2.1.4-3eo.i386.rpm

Good luck.

Offline edb

  • *
  • 548
  • +0/-0
Re: PHP pdflib
« Reply #17 on: March 05, 2008, 03:22:50 PM »
Wow that is awsome ergozd!

I will give your new rpm a try but would it be too much if I asked you how to go about creating/compiling the rpm so that I could learn something new? I have VMware so I can create a SME7 test environment ...
Thanks for all your help!

edb
......

Offline jvmartins

  • 2
  • +0/-0
Re: PHP pdflib
« Reply #18 on: October 01, 2010, 06:02:18 PM »
Hi,

    Need some help.

    My SME is 7.5.1 with PHP 4.3.9.

    installed nagios and PNP and one of the links shows "FPDF error: This version of PHP is not supported"

    Could anyone give me some help to overcome this?

Regards,

jvmartins

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PHP pdflib
« Reply #19 on: October 01, 2010, 06:49:27 PM »
installed nagios and PNP and one of the links shows "FPDF error: This version of PHP is not supported"
The error seems pretty self explanatory to me. You are running a PHP version that is not compatible with FDPF.

Could anyone give me some help to overcome this?
Next time check the requirements and see if they are met before installing. Installing a newer PHP version on SME Server is not easy and brings you in unsupported territory.

Perhaps you can use another version of FPDF. What version are you using? Where did you get your version of FPDF from?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline jvmartins

  • 2
  • +0/-0
Re: PHP pdflib
« Reply #20 on: October 01, 2010, 07:20:05 PM »
Hi,

    I just followed the nagios how-to at contribs.org.

    The insrtrutions lead us to install PNP4nagios that uses pdflib.

    It's workin now. After some reading on this forun I was able to have it working (till now!!!).

    First I installed the   "pdflib-6.0.1-1.2.el4.rf.i386.rpm" as refered in a previous post of this forum.

    Then I tried to find the "php-pecl-pdflib-2.1.4-1eo.i386.rpm" but I was not able to find it. Installed "php-pecl-pdflib-2.1.8-1.el4.remi.i386.rpm" instead.

   And last I followed the orientations to upgrade PHP from 4 to 5 in this post "http://forums.contribs.org/index.php/topic,44025.msg211521.html#msg211521"

   the commands used were:

   yum --enablerepo=centosplus install php.i386 php-pear-Net-Socket php-pear-Auth-SASL php-pear-DB php-pear-HTTP php-pear-Mail php-pear-XML-Parser

   /sbin/e-smith/signal-event post-upgrade
   /sbin/e-smith/signal-event reboot

   Now it's working. I'm able to get PDF files from my nagios performance data.

Regards,

jvmartins