Linux: Convert pdf to html

PHOTO EMBED

Mon Aug 29 2022 13:45:39 GMT+0000 (UTC)

Saved by @marcopinero #bash

#this command shows a list of supported encodings:
#pdftotext -listenc 

#this command convert pdf to html:
#pdftohtml -c -s -enc <encoding> <pdf to convert> <output html file>

#Ex:

pdftohtml -c -s -enc Latin1 test.pdf test.html
content_copyCOPY

Simple tool to save pdf file as html.