printing to pdf

I am trying to convert an html file on a server running Panther and convert it to a PDF file. Obviously on a local machine it can be done via the print option. I have seen scripts to convert other file types to pdf, but none that work with html files. Can anyone help? This would all be done on an xserve remotely.

Sam