PDF writer
Unfortunately it is not as easy as writing a script.
The solutions I have seen involve having to install an application on the host, which in most cases will require you to have a dedicated server. Beyond that there was a significant charge due to the licensing from Adobe.