4 ways to convert PDF to HTML5

When converting a PDF file into HTML5 content, there are different ways to go about it depending on your priorities. HTML5 contains different features compared to PDF, so there is not always a direct match.

For example, the PDF file format allows individual control over the spacing between each text character. You can emulate this in HTML5 by putting each character in its own div tag but this can create large files. So in this case is an exact layout or smaller filesize more important to you?

We have added a page to our website showing 4 of the possible ways convert a PDF file to HTML5 using a combination of an images, canvas and text which all offer different advantages.

The list is not exhaustive (and we have some more combinations in the works including SVG) but it makes it easy to compare them against each other easily.  Which do you prefer?

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX. He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

Related Posts: