I am looking for an open source solution that can create PDF/.Doc files from html/text/postscript using command line, preferably HTML-PDF.
closed as off topic by Luke, Journeyman Geek, 8088, Diogo, studiohack♦ Jul 21 '12 at 20:23
Questions on Super User are expected to relate to computer software or computer hardware within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
pstopdf will do the job for the PS files. Also, for the Word documents, you could try the wvPDF. I believe (but I am not sure, so you have to try it), that "convert" can by used for the html ones.
For rest of the files, I would "print" the documents to a PS printer and then convert the PS to PDF, or, if that was possible in command line (I don't know if it is), to print the document directly to a PDF printer.
An alternative could be Calibre. This software's main intention is concerning eBooks, and it includes a CLI tool to convert between the different supported formats (