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?
Latest posts by Mark Stephens (see all)
- Saving your settings in our online PDF to HTML5 and SVG converter - May 20, 2013
- PDF teasers – how would you handle this stack problem? - May 15, 2013
- Where do your PDF objects start in a PDF file? - May 8, 2013
- Version 5 release – Swing and javaFX - April 26, 2013
- Which languages should have examples when documenting a web service? - April 24, 2013