I know there is a XML text -> PDF file convertion. I don't remember where I found it, but it should be widely available and free. It is used to dynamically convert web page/text file into pdf for file downloading purpose.