PDFLib Lite installation for PHP 5 on Windows

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply

Tue Aug 14, 2007 12:41 pm

I am trying to use the PDF functions with PHP-5 on a windows environment. I downloaded the PDFLib lite 7.0.2 but I can not find anywhere how to get it to work. The PHP documentation does not provide much help either. I appreciate any help or any pointer on this subject. :?


Mon Aug 20, 2007 11:00 am

Hey, 45 people viewed this post and no one has a clue? Nobody ever uses the PDF function???????

New php-forum User
New php-forum User
Posts: 6
Joined: Fri Aug 03, 2007 6:25 pm
Location: Germany

Mon Aug 20, 2007 5:53 pm

I don't know, how you install it under Windows, but I know, how to install it under Unix.
There you just have to do a command at the commandline:
pecl install channel://pecl.php.net/pdflib-2.1.3
I don't know if there is such a function under Windows. So I can't really help you, but I wanted to answer you at least.


Thu Aug 23, 2007 6:39 am

I installed it by copying the PHP_PDF.DLLl in the extensions folder and modified the php.ini file. When I run the sample script from PHP5 documentation I get the following error:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
PDFlib exception (fatal): [1202] PDF_set_parameter: Unknown key 'objorient'
Error in my_thread_global_end(): 1 threads didn't exit

Any idea? :?

Post Reply