I have been having trouble getting Clibpdf working with PHP on FreeBSD. I've followed the instructions in the clibpdf install file, but PHP does not seem to recognize it. Does anybody know of a how-to or tutorial for getting this up and running with PHP?

By the way, I can get PDFlib to work with no problem, but licensing restrictions are going to force me to use Clibpdf. Clibpdf is free for non-profits and governments, whereas PDFlib requires a license purchase.

    Hi,

    pdflib lite is also free for private an non commercial users. It should include all important functions used by php (and the functions provided by cpdflib). I couldn't test it completely but I didn't find any missing function yet (maybe I'm wrong).

    If you download the source package of pdflib and compile it you'll get rid of the license stuff and license output on the generated pages.

    Some of the elder versions of pdflib like pdf-4.x included all PDF functions, maybe you can find it somewhere. PHP should compile with the 4.x version of pdflib.

      Thanks for the suggestion.. but I need Clibpdf and not PDFLib. I am able to get PDFLib-lite to work but I can not use PDFlib-lite in production because of the license is not free for my use.

      I've tried building clibpdf both by using the FreeBSD ports system and also by compiling it myself. It seems to install sucessfully both ways, but I can't seem to get PHP to recongize clibpdf functions.

      Here is my PHP configure.

      ./configure --with-apxs=/usr/local/apache/bin/apxs --with-pgsql --with-cpdflib=/usr/local/lib/ --with-pdflib=/usr/local/ --without-mysql

      If anybody can point me to a clibpdf - PHP installation tutorial/how-to, I would be very thankful. So far all my google searches point me to pdflib, but as explained above, I can't use pdflib.

      Thanks

        Hi,

        did you get errors when you used --with-cpdflib=/usr/local instead of --with-cpdflib=/usr/local/lib ?

        It might bee that configure ignores cpdflib because it can't find the header files of cpdflib if you use the lib directory with configure.

          a month later
          Write a Reply...