If you were to do this, you'd need to request the document through a socket, so you can get the contents of the page...
Then, using exec or system:
http://www.php.net/exec
http://www.php.net/system
You would need to run the HTMLDoc program to convert it, and place it under the web root so you can redirect to it using a
http://www.php.net/header
Header. To do this, say you save it in /home/public_html_root/mysavedfiles/123.pdf you would do a :
Header("Location: http://www.mywebsite.com/mysavedfiles/123.pdf");
I hope that makes sense 🙂 Hope that helps:
Chris King