Publishing PDF Online

     A PDF to HTML converter

View project on GitHub

A beautiful demo is worth a thousand words:


pdf2htmlEX renders PDF files in HTML, utilizing modern Web technologies. It aims to provide an accurate rendering, while being optimized for Web display. Text, fonts and formats are natively preserved in HTML. Mathematical formulas, figures and images are also supported.

pdf2htmlEX is also a publishing tool: almost 50 options make it flexible for many different use cases: PDF preview, book/magazine publishing, personal resume…

pdf2htmlEX is optimized for modern web browsers such as Mozilla Firefox & Google Chrome.


This is an era of Web. HTML, together with CSS and JavaScript, provides the flexibility allowing you to embed documents with beautiful themes, consistent bahivours and useful features. User experience will also be significantly improved, documents will be plugin-free and interactive, users can read while downloading.


  • Single HTML file output
  • or one HTML file per page if that is what you want…
  • Images
  • Precise rendering
  • Text Selection
  • Font embedding & reencoding for Web
  • Proper styling (Color, Transformation…)
  • Links
  • Optimization for Web

Not supported yet

  • Type 3 fonts
  • Non-text object (Don’t worry, they will be rendered as images)

Get started

You can get pdf2htmlEX in a number of ways:


pdf2htmlEX /path/to/foobar.pdf

pdf2htmlEX --help

See: Quick Start


GPLv2 & GPLv3 Dual licensed

pdf2htmlEX is totally free, please credit pdf2htmlEX if you use it

Please consider sponsoring it if you use it for commercial purpose

Font extraction, conversion or redistribution may be illegal, please check your local laws


pdf2htmlEX is inspired by the following projects:

  • pdftops & pdftohtml from poppler
  • MuPDF
  • PDF.js
  • Crocodoc
  • Google Doc

pdf2htmlEX uses the following projects:

  • Poppler
  • FontForge

Finally, many thanks are due to

for creating the original project


Suggestions and questions are welcome.

Please read FAQ before sending an email.

Windows XP users

Please make sure ClearType is turned on

(Control Panel -> Display -> Appearance -> Effects -> “Use the following method to smooth edges of screen fonts” -> ClearType)