How do I convert PDF to HTML from command line?

I do it using Poppler in Cygwin:

pdftohtml -noframes input.pdf && sed -i 's| | |g' ${_%.pdf}.html