Look at the newest version of mudraw
. It is a command line tool that is from the MuPDF family of tools.
mudraw -o out.html -F html in.pdf
Use the newest version, if possible. It has gained quite a few new and additional features (it can do more than just PDF->HTML conversion):
$ mudraw
Usage: mudraw [options] file [pages]
-p - password
-o - output file name (%d for page number)
-F - output format (default inferred from output file name)
raster: png, tga, pnm, pam, pbm, pwg, pcl
vector: svg, pdf, trace
text: txt, html, stext
-s - show extra information:
m - show memory use
t - show timings
f - show page features
5 - show md5 checksum of rendered image
-R - rotate clockwise (default: 0 degrees)
-r - resolution in dpi (default: 72)
-w - width (in pixels) (maximum width if -r is specified)
-h - height (in pixels) (maximum height if -r is specified)
-f - fit width and/or height exactly; ignore original aspect ratio
-B - maximum bandheight (pgm, ppm, pam, png output only)
-W - page width for EPUB layout
-H - page height for EPUB layout
-S - font size for EPUB layout
-c - colorspace (mono, gray, grayalpha, rgb, rgba, cmyk, cmykalpha)
-G - apply gamma correction
-I invert colors
-A - number of bits of antialiasing (0 to 8)
-D disable use of display list
-i ignore errors
pages comma separated list of page numbers and ranges
Update (April 2016)
The calling convention of the tool has been changed. It is still part of the MuPDF family, but you run it like this now:
mutool draw