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 Link to comment https://forums.phpfreaks.com/topic/57854-php-to-pdf-dll-extension-where-to-download-it/ 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) Link to comment https://forums.phpfreaks.com/topic/57854-php-to-pdf-dll-extension-where-to-download-it/#findComment-286682 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. Link to comment https://forums.phpfreaks.com/topic/57854-php-to-pdf-dll-extension-where-to-download-it/#findComment-286686 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? Link to comment https://forums.phpfreaks.com/topic/57854-php-to-pdf-dll-extension-where-to-download-it/#findComment-286687 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. Link to comment https://forums.phpfreaks.com/topic/57854-php-to-pdf-dll-extension-where-to-download-it/#findComment-286803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.