I'm having exactly the same trouble.
I've tried 4.0.6 and 4.0.8 and in both cases, when I specify the extensions directory and uncomment an extension in that directory, I get a popup message on the server that says:
"Unable to load dynamic library 'C:\PHP4\extensions\php_pdf.dll' - The specified module could not be found."
On client machines it appears as:
"PHP Warning: Unable to load dynamic library 'C:\PHP4\extensions\php_pdf.dll' - The specified module could not be found. in Unknown on line 0"
This happens no matter which dll I try to load, and the path in the error message is the exact path they are in.
It's driving me batty - seems like either there is something I'm missing, or all the latest builds of PHP for Windows are broken.
I really want to start using php for dynamic creation of images and pdfs, but it looks like I have to look into buying similar solutions for ASP...
Does anyone have a solution for this?
Please, I'm desperate!