Compile LaTeX to HTML/CSS with kept typography

pdf2htmlEX can convert PDF to HTML without losing format.


I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac.

Instructions:

  • Make sure you have a Java Runtime (version >= 1.7) installed
  • Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip
  • Unpack archive
  • Change current dir to unpacked folder
  • Run: java -jar pdbf.jar /path/to/sometexfile.tex

Resulting HTML file is placed in the same folder as the source tex file with the same name as the source tex file.

Technical details: The PDBF compiler basically uses a regular tex engine to compile your pdf and then stores the pdf as base64 encoded javascript string in the HTML and then includes a slightly modified version of pdf.js (The free and open source pdf engine of firefox) into the HTML to display that pdf.

Hope you like my project. Feel free to contact me through github if you have suggestions or encounter bugs.