installing PDFlib package

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjeev1984chadha
    New Member
    • May 2008
    • 2

    installing PDFlib package

    Hi
    I am facing trouble in calling PDFlib class
    i have a file called "export.php "and while running it from command prompt i get an error

    Fatal error: Class 'PDFlib' not found in /home/sanjeev/svn/civicrm1.8/CRM/Utils/PDFlib.php on line 48

    which indicates that the PDFlib class is not getting called
    i have installed the PDFlib-Lite-7.0.3 package using the following steps

    1.sanjeev@sanje ev:~$ cd Desktop/PDFlib-Lite-7.0.3

    2.sanjeev@sanje ev:~/PDFlib-Lite-7.0.3$ ./configure

    3.sanjeev@sanje ev:~/PDFlib-Lite-7.0.3$ make

    4.sanjeev@sanje ev:~/PDFlib-Lite-7.0.3$ sudo make install

    5.sanjeev@sanje ev:~$ sudo apt-get install php-pear php5-dev

    6.sanjeev@sanje ev:~$ sudo pecl install pdflib
    downloading pdflib-2.1.3.tgz ...
    Starting to download pdflib-2.1.3.tgz (55,675 bytes)
    .............do ne: 55,675 bytes
    10 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20050922
    Zend Extension Api No: 220051025
    path to pdflib installation? : /usr/local

    and lastly have also added
    extension=php.s o in php.ini file

    still i am getting the same error

    Fatal error: Class 'PDFlib' not found in /home/sanjeev/svn/civicrm1.8/CRM/Utils/PDFlib.php on line 48

    so can someone please help me with this
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Sanjeev.

    You might find this document to be of interest.

    Comment

    Working...