pdftohtml

Convert PDF files into HTML, XML and PNG images. More information: https://manned.org/pdftohtml.

pdftohtml path/to/file.pdf path/to/output_file.html

pdftohtml -i path/to/file.pdf path/to/output_file.html

pdftohtml -s path/to/file.pdf path/to/output_file.html

pdftohtml -xml path/to/file.pdf path/to/output_file.xml