jwpryor Posted June 30, 2007 Share Posted June 30, 2007 I am trying to find the dll extension for php creation. I believe it is extension=php_pdf.dll but it could be extension=libpdf_php.dll --- Does anyone know what the extension is and where to download it from? I Quote Link to comment Share on other sites More sharing options...
jwpryor Posted June 30, 2007 Author Share Posted June 30, 2007 I was finally able to find php_pdf.dll 1. I added the following line in the php.ini file under all the other extensions and put it: extension=php_pdf.dll 2. I placed the dll in C:\PHP\ext 3. now when I run phpinfo(); I get the following error at the end of the php info window: ---------------- PHP Warning: PHP Startup: pdf: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=1 PHP compiled with module API=20050922, debug=0, thread-safety=1 These options need to match in Unknown on line 0 --------------- Is there something else I need to do to put in the new extension? (using php 5.1.4 on Windows; the dll is version 5.2.1.1 dated 2-7-2007) Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 30, 2007 Share Posted June 30, 2007 Did u add the dll to the window directory and reboot apache/php. Quote Link to comment Share on other sites More sharing options...
jwpryor Posted June 30, 2007 Author Share Posted June 30, 2007 I have now copied the php-pdf.dll to the c:\\windows directory Restarted IIS (using IIS not Apache). And still get the error. Do I need to actually reboot the server? Quote Link to comment Share on other sites More sharing options...
jwpryor Posted June 30, 2007 Author Share Posted June 30, 2007 I have been partially successful now creating a pdf from php by getting a dll from pdflib that is now called libpdf_php.dll. I could never find a version 4 of php-pdf.dll that other discussions mentioned would work. This version (I believe) is not free (which is okay) but very little documentation on the functions and much more difficult to read for a relatively inexperienced php programmer. I briefly looked at fphp.org but it didn't seem robust enough for creating reports (like we need to. Does anyone have other suggestions on what to use or experience with libpdf_php.dll? I can't figure out how to get the fonts to work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.