Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking for an open source solution that can create PDF/.Doc files from html/text/postscript using command line, preferably HTML-PDF.

share|improve this question

closed as off topic by Canadian 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 by the community. 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 reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Welcome to SuperUser! Unfortunately, shopping or product recommendations are considered off topic for the Stack Exchange websites. If you wish, you can try to edit your question so you are asking about a process, as opposed to a product –  Canadian Luke Jul 16 '12 at 5:41
    
Sorry about that, I have now made changes. Thank you –  praneybehl Jul 17 '12 at 7:32
add comment

2 Answers 2

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.

share|improve this answer
    
Thanks for your suggestion, I have made changes in my request as I would prefer it to be html-PDF convertor. –  praneybehl Jul 17 '12 at 7:33
add comment

PrinceXML does a great job. It may be not open source, but is provided for free non-commercial use (see its license). Available for Windows, Linux (.tag.gz/.deb/.rpm), MacOS, BSD...

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 (ebook-convert). And that's quite a lot formats which are supported:

calibre is a free and open source e-book library management application developed by users of e-books for users of e-books. It has a cornucopia of features divided into the following main categories:

* Library Management
* E-book conversion
* Syncing to e-book reader devices
* Downloading news from the web and converting it into e-book form
* Comprehensive e-book viewer
* Content server for online access to your book collection
share|improve this answer
    
Thank you for your suggestion, but I seek open-source so I can distribute it along my app freely. –  praneybehl Jul 17 '12 at 7:36
    
Good luck then. I tried a lot of them, Prince was the only one working fine out-of-the-box. But of course I might have missed some. Ah, you might take a look at Calibre. Though it is focussed on eBooks, it features a CLI interface (ebook-convert) converting between the different formats. I'll update that into my answer. –  Izzy Jul 17 '12 at 9:55
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.