Site iconJava PDF Blog

PDF to HTML5 conversion – video

The PDF file format allows you to embed video directly inside a PDF file. So, I wondered, how easy would it be to write it out to HTML5. The data is embedded as a binary bytestream in one of several formats (mp4, swf). It turns out that HTML5 also supports these formats and it has a special tag (video) for the purpose. So it is actually reasonably straight-forward to extract it from the PDF and make it available in HTML.

Here is my first attempt as an example for our PDF to HTML5 convertor (and it works on IPad as well!). What do you think?

Click here to see all the other articles in the PDF to HTML5 conversion series.