Reading support for HTML and EML files is included in the following Imaging SDK products:

  • Imaging SDK for the Java Platform

Currently, RasterMaster Software does not provide HTML/EML reading support in Macintosh products.

Preparation

In order to enable this feature you will need to prepare your system.

Windows

RasterMaster uses the open-source wkhtmltopdf program to perform HTML conversion. This program is extracted at runtime, either to the temporary directory (default), or to a user-specified directory. This extraction directory can be specified via Snowbnd.IMGLOW_setHtmlExtractionPath. Your application must be able to read and write to this directory.

The above code only needs to be executed once for the lifetime of your Java program.

Now, RasterMaster will be able to detect and convert HTML/EML files.

Linux

RasterMaster uses the open-source wkhtmltopdf program to perform HTML conversion. This package will need to be installed on your system. On Debian-based systems, such as Ubuntu, you can install the wkhtmltopdf package via apt:

sudo apt install wkhtmltopdf

Now, RasterMaster will be able to detect and convert HTML/EML files.

Reading and Decompressing

To read/decompress a HTML or EML file, use any of the decompression calls such as IMG_decompress_bitmap(String, int). All Imaging SDK products automatically detect the file format and do not use the extension on the file name.