Forum OpenACS Q&A: Response to server side document to .pdf conversion
Create a PDF Service with Samba
Use GhostScript to create a PDF document out of any PostScript printer job
it describes how to set up a Samba pdf file printer and how to use it with the lpr command (I don't know how lpr handles .doc, .xsl etc., a specific driver or converter might be needed to spit .ps to the printer). I'm too new to tcl and ns api to tell how to send a command line from a web script, but it must be possible.