Docverter has a simple to use HTTP API:
curl http://c.docverter.com/convert \
-F from=html \
-F to=pdf \
-F input_files=@<(echo hi there)
Docverter lets you get going immediately without having to set up your own document conversion tools. Docverter wraps several open source projects to make your documents come out perfect every time.