Q: Our web application is built with PHP an so far we haven't been
able to utilize PDF2Image SDK via PHP (). In order to access the SDK
we have placed pdf2image.dll (
http://www.pdftron.com/pdf2image/) in
the PHP extension directory and registered it in PHP.ini.
Unfortunately that didn't work. Is there any other way to accomplish
this? Do you have any code examples in PHP that you could provide us?
-------
A: You have couple of options:
a) Call pdf2image command-line application via the shell command from
PHP (you could run the process in the silent/non-GUI mode).
b) Write a small (1 function call) PHP wrapper (in C) that will call
PDF2ImageRun. On the Net you can find many tutorials on how to create
a PHP wrapper around an existing shared library with C API.