HTML/EML File Support
Currently, PrizmDoc® for Java does not support HTML/EML on servers running macOS.
Preparation
In order to enable this feature you will need to prepare your system.
Linux
RasterMaster, and by extension PrizmDoc® for Java, uses the Accusoft-modified open-source cef-pdf
program to perform HTML conversion. This program must be downloaded and extracted to a user-specified directory before using the product to display HTML/EML files. The full archive can be downloaded here. Extract the contents to a directory and make the cef-pdf
file executable using chmod +x cef-pdf
. This directory must be specified via the htmlExtractionPath
parameter in your web.xml
configuration file. Your application must be able to read from, write to, and execute programs from this directory.
Your system will need to have prerequisites for Chromium Embedded Framework installed. On Ubuntu these include…
libxdamage1
libgbm-dev
libxkbcommon-x11-0
libpangocairo-1.0-0
These programs can be installed using apt
. For the full list, see Chromium Dependencies.
If your system is running without a display, you may need to configure a virtual framebuffer using xvfb
. You can achieve this by running a command such as the following…
Xvfb -ac :99 -screen 0 1024x768x24 &
DISPLAY=:99
where :99
refers to an arbitrary number and 1024x768x24
specifies the frame buffer width, height, and depth. This command will need to be executed before starting the product. This program can be installed on Ubuntu using apt install xvfb
.
Now, PrizmDoc® for Java will be able to display HTML/EML files.
Windows
PrizmDoc® for Java uses the Accusoft-modified open-source cef-pdf
program to perform HTML/EML rendering. This program is extracted at runtime to the temporary directory. Your application must be able to read and write to this directory.
Now, PrizmDoc® for Java will be able to display HTML/EML files.
Have questions, corrections, or concerns about this topic? Please let us know!