Use PDF.js to statically convert a PDF to HTML Use PDF.js to statically convert a PDF to HTML javascript javascript

Use PDF.js to statically convert a PDF to HTML


Note: this is for the original question, as well as for others who may be visiting this for related help, as was the case with me. ;)

Answer:
You may try: Poppler or pdf2htmlEX which is based on Poppler.

I'd recommend looking at the pdf2htmlEX documentation it also has as very good comparison table.


pdf.js renders to Canvas so it can't be used to statically convert a PDF to HTML


DocPub is powered by PDFNet, a PDF SDK with C# support, which supports converting PDF to HTML offline.

WebViewer from the same company is an HTML5-based PDF viewer that renders documents on-the-fly within the browser.

WebViewer works with all major Web platforms; the viewer can be directly embedded and customized within any HTML5, Silverlight, or Flash application. The content can be instantly accessed from any system or device - including iPad/iPhone (iOS), Android, Windows (desktop & tablets), WP8, Linux, Mac, etc. -- demo