CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • PDFlib class problem in Quest
Pages: [1]

Author Topic: PDFlib class problem in Quest  (Read 2978 times)

sanjeev

  • Guest
PDFlib class problem in Quest
May 28, 2008, 02:04:12 am
Hi
I am facing trouble in calling PDFlib class

i have a file called "export.php" in " quest/bin "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@sanjeev:~$ cd Desktop/PDFlib-Lite-7.0.3

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

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

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

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

6.sanjeev@sanjeev:~$ sudo pecl install pdflib
downloading pdflib-2.1.3.tgz ...
Starting to download pdflib-2.1.3.tgz (55,675 bytes)
.............done: 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.so 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

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: PDFlib class problem in Quest
May 28, 2008, 03:55:53 am
This is more related to "PDFlib" configuration problem, you might want to google for this.

http://forums.codewalkers.com/php-installation-46/install-pdflib-and-use-pdf-function-849161.html
http://bytes.com/forum/thread576039.html

HTH

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • PDFlib class problem in Quest

This forum was archived on 2017-11-26.