New PDF to HTML5 Viewing Modes

Yesterday, Kieran wrote about New SVG View Mode Options, and today I am pleased to say that we did not forget about expanding the range of modes available to our HTML5 output either.

The options are activated in the same way, by setting org.jpedal.pdf2html.viewMode as a system property or as a key in a map with one of the following values.

Single File Split Spread Mode:

Activated using the value “singlefile_splitspread”. This mode is very similar to single file mode, but with the added enhancement that pages are aligned in the style of an open magazine, with even numbered pages appearing on the left, and odd appearing on the right.

singlefile_splitspreads

Go to example page
Single File Horizontal Mode:

Activated using the value “singlefile_horizontal”. This mode all pages into a single file and is exactly like single file mode except that the pages are positioned horizontally rather than vertically. It is perfect for mobile or tablet devices where you can easily swipe through pages.

singlefile_horizontal

Go to example page
Single File Mode:

Activated using the value “singlefile”. This mode extracts all pages into a single file arranged into a single vertical column. It is perfect for desktop, mobile and tablet devices where you can easily swipe down through pages.

singlefile

Go to example page
Multi File Mode (default):

Activated using the value “multifile”, or by not setting the flag at all. This mode extracts all pages into individual HTML files. There are a range of navigation bars that can be added to enhance navigation.

multifile

Go to example page
Multi File Split Spread Mode:

Activated using the value “multifile_splitspread”. This mode extracts pages 2 per file and aligns in the style of an open magazine, with even numbered pages appearing on the left, and odd numbered pages appearing on the right.

multifile_splitspreads

Go to example page
We have a lot of exciting updates, enhancements and optimisations planned for the future and we now also post updates and blog articles to Twitter, Facebook and Google+, so make sure to follow us to keep up to date on the latest news.

This post is part of our “SVG Article Index” in these articles, we aim to help you build knowledge and understand SVG.

  • Try PDF to HTML5 and SVG for Free
The following two tabs change content below.
Leon is a developer at IDRsolutions who focuses primarily on JPDF2HTML5 core and IDRViewer development, as well as making sure that the monthly releases go as planned. He can also be found working on the marketing side, interpreting analytics and helping make sure that IDRsolutions continues to grow.

Related Posts:

Leon Atherton

About Leon Atherton

Leon is a developer at IDRsolutions who focuses primarily on JPDF2HTML5 core and IDRViewer development, as well as making sure that the monthly releases go as planned. He can also be found working on the marketing side, interpreting analytics and helping make sure that IDRsolutions continues to grow.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>